diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-09-11 12:27:49 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-11 22:14:01 +0200 |
commit | 14a6257ed1dca3a037003f40706eeda7f5a2bbda (patch) | |
tree | bcf74fa1f947917f1d7e294e0509936526bd8a65 | |
parent | cbe805c2122b8b46b1fbe7c6b1d8f69cd22fb901 (diff) |
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.
-rw-r--r-- | device/cons.c | 4 |
1 files 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; } /* |