commit-hurd
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]