summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/xargs/xargs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index 0d79717de2a..8124464add8 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xargs.c,v 1.6 1997/11/04 08:47:15 deraadt Exp $ */
+/* $OpenBSD: xargs.c,v 1.7 1998/04/26 17:12:48 deraadt Exp $ */
/* $NetBSD: xargs.c,v 1.7 1994/11/14 06:51:41 jtc Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: xargs.c,v 1.6 1997/11/04 08:47:15 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xargs.c,v 1.7 1998/04/26 17:12:48 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -315,19 +315,19 @@ run(argv)
* we'll use 124 and 125, the same values used by GNU xargs.
*/
if (WIFEXITED(status)) {
- if (WEXITSTATUS (status) == 255) {
- warnx ("%s exited with status 255", argv[0]);
+ if (WEXITSTATUS(status) == 255) {
+ warnx("%s exited with status 255", argv[0]);
exit(124);
- } else if (WEXITSTATUS (status) != 0) {
+ } else if (WEXITSTATUS(status) != 0) {
rval = 123;
}
- } else if (WIFSIGNALED (status)) {
+ } else if (WIFSIGNALED(status)) {
if (WTERMSIG(status) != SIGPIPE) {
if (WTERMSIG(status) < NSIG)
- warnx ("%s terminated by SIG%s", argv[0],
+ warnx("%s terminated by SIG%s", argv[0],
sys_signame[WTERMSIG(status)]);
else
- warnx ("%s terminated by signal %d", argv[0],
+ warnx("%s terminated by signal %d", argv[0],
WTERMSIG(status));
}
exit(125);