diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-31 12:34:58 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-31 12:34:58 +0000 |
commit | 7cb8427945346cbc91f51a559c240e4e7b367dd4 (patch) | |
tree | d4e6d62fcfd9d01ffd401114ca78a2c182769f15 | |
parent | def913089bc427e3ef39cf0d1c7ccc1c75522479 (diff) |
Add parentheses to avoid warning:
"suggest parentheses around && within ||"
ok millert@
-rw-r--r-- | lib/libc/stdlib/getopt_long.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c index 3ffd923623f..73d97c0ed34 100644 --- a/lib/libc/stdlib/getopt_long.c +++ b/lib/libc/stdlib/getopt_long.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getopt_long.c,v 1.22 2006/10/04 21:29:04 jmc Exp $ */ +/* $OpenBSD: getopt_long.c,v 1.23 2007/10/31 12:34:57 chl Exp $ */ /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ /* @@ -410,7 +410,7 @@ start: } if ((optchar = (int)*place++) == (int)':' || - optchar == (int)'-' && *place != '\0' || + (optchar == (int)'-' && *place != '\0') || (oli = strchr(options, optchar)) == NULL) { /* * If the user specified "-" and '-' isn't listed in |