summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorchl <>2007-10-31 12:34:57 +0000
committerchl <>2007-10-31 12:34:57 +0000
commit39f521b345b60e52d3e0004a5da2b8405ffe8669 (patch)
tree1df078f1bcdfbbad5232fa41967cbdcc90866470 /src
parent74422770da15213fb8b6c66c769d0ff45860afd6 (diff)
downloadopenbsd-39f521b345b60e52d3e0004a5da2b8405ffe8669.tar.gz
openbsd-39f521b345b60e52d3e0004a5da2b8405ffe8669.tar.bz2
openbsd-39f521b345b60e52d3e0004a5da2b8405ffe8669.zip
Add parentheses to avoid warning:
"suggest parentheses around && within ||" ok millert@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/getopt_long.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/getopt_long.c b/src/lib/libc/stdlib/getopt_long.c
index 3ffd923623..73d97c0ed3 100644
--- a/src/lib/libc/stdlib/getopt_long.c
+++ b/src/lib/libc/stdlib/getopt_long.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getopt_long.c,v 1.22 2006/10/04 21:29:04 jmc Exp $ */ 1/* $OpenBSD: getopt_long.c,v 1.23 2007/10/31 12:34:57 chl Exp $ */
2/* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ 2/* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */
3 3
4/* 4/*
@@ -410,7 +410,7 @@ start:
410 } 410 }
411 411
412 if ((optchar = (int)*place++) == (int)':' || 412 if ((optchar = (int)*place++) == (int)':' ||
413 optchar == (int)'-' && *place != '\0' || 413 (optchar == (int)'-' && *place != '\0') ||
414 (oli = strchr(options, optchar)) == NULL) { 414 (oli = strchr(options, optchar)) == NULL) {
415 /* 415 /*
416 * If the user specified "-" and '-' isn't listed in 416 * If the user specified "-" and '-' isn't listed in