what: use numeric exit status, as indicated by the comment
ok christos
This commit is contained in:
parent
4baee7b8d2
commit
d71aff91e8
|
@ -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
|
* Copyright (c) 1980, 1988, 1993
|
||||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1988, 1993\
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93";
|
||||||
#endif
|
#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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
@ -89,8 +89,8 @@ main(int argc, char **argv)
|
||||||
search();
|
search();
|
||||||
} while (*++argv != NULL);
|
} while (*++argv != NULL);
|
||||||
|
|
||||||
/* Note: the standard explicitly specifies an exit status of 1. */
|
/* Note: the standard explicitly specifies an exit status of 0/1. */
|
||||||
return matches ? EXIT_SUCCESS : EXIT_FAILURE;
|
return matches ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue