summaryrefslogtreecommitdiff
path: root/device/kmsg.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-05 22:03:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-08 23:52:28 +0900
commitc2eebf318505a4c5b83ebff6e2d1974ce5bbf146 (patch)
tree07ed8a5d1a945f2eec74f84fb209ef968bbccb9a /device/kmsg.c
parentcc2dd46fb9672c2481104d05f3cdded5a5c9130a (diff)
device/kmsg.c: use boolean instead of an int
* device/kmsg.c (kmsg_init_done): Use boolean instead of an int.
Diffstat (limited to 'device/kmsg.c')
-rw-r--r--device/kmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device/kmsg.c b/device/kmsg.c
index 0e18725..7034bfc 100644
--- a/device/kmsg.c
+++ b/device/kmsg.c
@@ -46,7 +46,7 @@ static boolean_t kmsg_in_use;
/* Used for exclusive access to the routines */
decl_simple_lock_data (static, kmsg_lock);
/* If already initialized or not */
-static int kmsg_init_done = 0;
+static boolean_t kmsg_init_done = FALSE;
/* Kernel Message Initializer */
static void
@@ -225,7 +225,7 @@ kmsg_putchar (int c)
if (!kmsg_init_done)
{
kmsginit ();
- kmsg_init_done = 1;
+ kmsg_init_done = TRUE;
}
simple_lock (&kmsg_lock);