[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnumach] 21/56: track the console init with a boolean instead of an int
From: |
Samuel Thibault |
Subject: |
[gnumach] 21/56: track the console init with a boolean instead of an int |
Date: |
Sat, 28 Sep 2013 12:43:14 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository gnumach.
commit 14a6257ed1dca3a037003f40706eeda7f5a2bbda
Author: Marin Ramesa <address@hidden>
Date: Wed Sep 11 12:27:49 2013 +0200
track the console init with a boolean instead of an int
A variable that keeps track if the console init has been called. It should
never receive values other than 0 and 1, so constrain it's possible range of
values to a boolean.
* device/cons.c (cn_inited): Use boolean_t instead of an int.
---
device/cons.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/device/cons.c b/device/cons.c
index a220723..ceba7f2 100644
--- a/device/cons.c
+++ b/device/cons.c
@@ -32,7 +32,7 @@
#include <device/kmsg.h>
#endif
-static int cn_inited = 0;
+static boolean_t cn_inited = FALSE;
static struct consdev *cn_tab = 0; /* physical console device info */
/*
@@ -109,7 +109,7 @@ cninit()
consbufused = FALSE;
}
#endif
- cn_inited = 1;
+ cn_inited = TRUE;
return;
}
/*
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/gnumach.git
- [gnumach] 34/56: remove register qualifiers, (continued)
- [gnumach] 34/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 33/56: remove lint code, Samuel Thibault, 2013/09/28
- [gnumach] 30/56: another small change in style for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 27/56: another small change in style for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 25/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 22/56: remove register qualifiers., Samuel Thibault, 2013/09/28
- [gnumach] 28/56: remove preprocessor comments, Samuel Thibault, 2013/09/28
- [gnumach] 23/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 26/56: small style changes for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 20/56: track the console buffer usage with a boolean instead of an int, Samuel Thibault, 2013/09/28
- [gnumach] 21/56: track the console init with a boolean instead of an int,
Samuel Thibault <=
- [gnumach] 54/56: * patches/80_missing_files.patch: Add missing files from git., Samuel Thibault, 2013/09/28
- [gnumach] 50/56: Imported Upstream version 1.4, Samuel Thibault, 2013/09/28