diff options
| author | Xin LI <delphij@FreeBSD.org> | 2010-12-14 18:23:15 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2010-12-14 18:23:15 +0000 |
| commit | 5eccc0009b39ee0ef76e13e6606fa5ea4e11a3a9 (patch) | |
| tree | 1cf4b6fc8270e97a47db7092cea61a37885a3248 /usr.bin/printf | |
| parent | e23559db8e0814432a1ee446e0091f8bc73b934d (diff) | |
Notes
Diffstat (limited to 'usr.bin/printf')
| -rw-r--r-- | usr.bin/printf/printf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 451b15b1a42e..e646f5d60dec 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -53,7 +53,6 @@ static const char rcsid[] = #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sysexits.h> #include <unistd.h> #ifdef SHELL @@ -123,7 +122,7 @@ main(int argc, char *argv[]) if (argc < 1) { usage(); - /* NOTREACHED */ + return (1); } #ifdef SHELL @@ -563,5 +562,4 @@ static void usage(void) { (void)fprintf(stderr, "usage: printf format [arguments ...]\n"); - exit(EX_USAGE); } |
