commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnumach] 29/56: use boolean_t instead of an int


From: Samuel Thibault
Subject: [gnumach] 29/56: use boolean_t instead of an int
Date: Sat, 28 Sep 2013 12:43:16 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch master
in repository gnumach.

commit 29837925f757278c80cda79daf16e241d53dfde0
Author: Marin Ramesa <address@hidden>
Date:   Fri Sep 13 13:31:56 2013 +0200

    use boolean_t instead of an int
    
    Variable 'found' already receives values TRUE and FALSE, so why not make
    it a boolean.
    
    * device/dev_name.c: Use boolean_t instead of an int.
---
 device/dev_name.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device/dev_name.c b/device/dev_name.c
index b560b0a..24d0885 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -213,7 +213,7 @@ boolean_t dev_change_indirect(iname, dname, unit)
 {
     struct dev_ops *dp;
     struct dev_indirect *di;
-    int found = FALSE;
+    boolean_t found = FALSE;
 
     dev_search(dp) {
        if (!strcmp(dp->d_name,dname)) {

-- 
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]