summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2014-10-26 05:10:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2014-10-26 05:10:30 +0000
commitaa31ffd5ab53b2904ebfe8c6b696b8e71782d234 (patch)
tree579643c1f4e07cc66ec08645ef8dc9c01a742f65
parentb1adb31510b6bffb5d0f366667e08d9fbb47fdec (diff)
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;