Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Fix 'suggest parentheses' warning noted by Erik...



details:   https://anonhg.NetBSD.org/src/rev/f5c7e28c568e
branches:  trunk
changeset: 467323:f5c7e28c568e
user:      abs <abs%NetBSD.org@localhost>
date:      Tue Mar 23 02:58:50 1999 +0000

description:
Fix 'suggest parentheses' warning noted by Erik E. Fair <fair%clock.org@localhost>

diffstat:

 lib/libc/gen/getcap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 144855094d71 -r f5c7e28c568e lib/libc/gen/getcap.c
--- a/lib/libc/gen/getcap.c     Tue Mar 23 02:55:46 1999 +0000
+++ b/lib/libc/gen/getcap.c     Tue Mar 23 02:58:50 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcap.c,v 1.27 1999/03/22 03:28:09 abs Exp $  */
+/*     $NetBSD: getcap.c,v 1.28 1999/03/23 02:58:50 abs Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)getcap.c   8.3 (Berkeley) 3/25/94";
 #else
-__RCSID("$NetBSD: getcap.c,v 1.27 1999/03/22 03:28:09 abs Exp $");
+__RCSID("$NetBSD: getcap.c,v 1.28 1999/03/23 02:58:50 abs Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -120,8 +120,8 @@
                *dest++ = *source++; /* Do not check first field */
                while (*source == ':') {
                        check=source+1;
-                       while (*check && isspace(*check) ||
-                           (*check=='\\' && isspace(check[1])))
+                       while (*check && (isspace(*check) ||
+                           (*check=='\\' && isspace(check[1]))) )
                                ++check;
                        if( *check == ':' )
                                source=check;



Home | Main Index | Thread Index | Old Index