Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/showmount Don't use 'bool' as variable name. No bin...



details:   https://anonhg.NetBSD.org/src/rev/b9bb206d8e12
branches:  trunk
changeset: 762751:b9bb206d8e12
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Sun Feb 27 10:11:27 2011 +0000

description:
Don't use 'bool' as variable name.  No binary changes.
>From Henning Petersen, thanks!

diffstat:

 usr.bin/showmount/showmount.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (71 lines):

diff -r ccd78256056b -r b9bb206d8e12 usr.bin/showmount/showmount.c
--- a/usr.bin/showmount/showmount.c     Sun Feb 27 09:01:56 2011 +0000
+++ b/usr.bin/showmount/showmount.c     Sun Feb 27 10:11:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: showmount.c,v 1.17 2009/04/13 07:30:49 lukem Exp $     */
+/*     $NetBSD: showmount.c,v 1.18 2011/02/27 10:11:27 mbalmer Exp $   */
 
 /*
  * Copyright (c) 1989, 1993, 1995
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)showmount.c        8.3 (Berkeley) 3/29/95";
 #endif
-__RCSID("$NetBSD: showmount.c,v 1.17 2009/04/13 07:30:49 lukem Exp $");
+__RCSID("$NetBSD: showmount.c,v 1.18 2011/02/27 10:11:27 mbalmer Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -241,14 +241,14 @@
 xdr_mntdump(XDR *xdrsp, struct mountlist **mlp)
 {
        struct mountlist *mp, **otp, *tp;
-       int bool, val, val2;
+       int bool_int, val, val2;
        char *strp;
 
        otp = NULL;
        *mlp = (struct mountlist *)0;
-       if (!xdr_bool(xdrsp, &bool))
+       if (!xdr_bool(xdrsp, &bool_int))
                return (0);
-       while (bool) {
+       while (bool_int) {
                mp = (struct mountlist *)malloc(sizeof(struct mountlist));
                if (mp == NULL)
                        return (0);
@@ -306,7 +306,7 @@
                        *otp = mp;
                }
 next:
-               if (!xdr_bool(xdrsp, &bool))
+               if (!xdr_bool(xdrsp, &bool_int))
                        return (0);
        }
        return (1);
@@ -320,13 +320,13 @@
 {
        struct exportslist *ep;
        struct grouplist *gp;
-       int bool, grpbool;
+       int bool_int, grpbool;
        char *strp;
 
        *exp = (struct exportslist *)0;
-       if (!xdr_bool(xdrsp, &bool))
+       if (!xdr_bool(xdrsp, &bool_int))
                return (0);
-       while (bool) {
+       while (bool_int) {
                ep = (struct exportslist *)malloc(sizeof(struct exportslist));
                if (ep == NULL)
                        return (0);
@@ -350,7 +350,7 @@
                }
                ep->ex_next = *exp;
                *exp = ep;
-               if (!xdr_bool(xdrsp, &bool))
+               if (!xdr_bool(xdrsp, &bool_int))
                        return (0);
        }
        return (1);



Home | Main Index | Thread Index | Old Index