Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/what what: use numeric exit status, as indicated by ...
details: https://anonhg.NetBSD.org/src/rev/35cdd33784b0
branches: trunk
changeset: 1027139:35cdd33784b0
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Dec 07 18:38:50 2021 +0000
description:
what: use numeric exit status, as indicated by the comment
ok christos
diffstat:
usr.bin/what/what.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 88655fe7ce7b -r 35cdd33784b0 usr.bin/what/what.c
--- a/usr.bin/what/what.c Tue Dec 07 17:50:27 2021 +0000
+++ b/usr.bin/what/what.c Tue Dec 07 18:38:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: what.c,v 1.14 2021/12/07 06:53:56 rillig Exp $ */
+/* $NetBSD: what.c,v 1.15 2021/12/07 18:38:50 rillig Exp $ */
/*
* Copyright (c) 1980, 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: what.c,v 1.14 2021/12/07 06:53:56 rillig Exp $");
+__RCSID("$NetBSD: what.c,v 1.15 2021/12/07 18:38:50 rillig Exp $");
#endif /* not lint */
#include <locale.h>
@@ -89,8 +89,8 @@
search();
} while (*++argv != NULL);
- /* Note: the standard explicitly specifies an exit status of 1. */
- return matches ? EXIT_SUCCESS : EXIT_FAILURE;
+ /* Note: the standard explicitly specifies an exit status of 0/1. */
+ return matches ? 0 : 1;
}
static void
Home |
Main Index |
Thread Index |
Old Index