summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2014-10-26 05:10:29 +0000
committerbrad <brad@openbsd.org>2014-10-26 05:10:29 +0000
commite6ff9582d9f240b62b4a79482ddbdc112ba1a2ac (patch)
tree6d7c05047f508ff1ea157a8bb220764398d71bb0
parentPlace additional parantheses around readdir() and check return does not (diff)
downloadwireguard-openbsd-e6ff9582d9f240b62b4a79482ddbdc112ba1a2ac.tar.xz
wireguard-openbsd-e6ff9582d9f240b62b4a79482ddbdc112ba1a2ac.zip
Add parentheses to suppress compiler warning.
sort.c:295:35: warning: '&&' within '||' [-Wlogical-op-parentheses] ok guenther@
-rw-r--r--usr.bin/sort/sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c
index f7a41e98bfa..54fc666d97c 100644
--- a/usr.bin/sort/sort.c
+++ b/usr.bin/sort/sort.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sort.c,v 1.42 2014/10/11 03:02:59 doug Exp $ */
+/* $OpenBSD: sort.c,v 1.43 2014/10/26 05:10:29 brad Exp $ */
/*-
* Copyright (c) 1993
@@ -292,8 +292,8 @@ main(int argc, char *argv[])
act.sa_handler = onsig;
for (i = 0; sigtable[i]; ++i) /* always unlink toutpath */
if (sigaction(sigtable[i], NULL, &oact) < 0 ||
- oact.sa_handler != SIG_IGN &&
- sigaction(sigtable[i], &act, NULL) < 0)
+ (oact.sa_handler != SIG_IGN &&
+ sigaction(sigtable[i], &act, NULL) < 0))
err(2, "sigaction");
} else
outfile = outpath;