diff options
author | 1999-09-12 10:29:01 +0000 | |
---|---|---|
committer | 1999-09-12 10:29:01 +0000 | |
commit | a028cb6e3ef359ca9449dc365b01ee031e0e5787 (patch) | |
tree | 28a20d0a377abd6d9faa84ea6fa2da242232d2f3 | |
parent | Change defaults to start sendmail using '-q30m'. This will not make (diff) | |
download | wireguard-openbsd-a028cb6e3ef359ca9449dc365b01ee031e0e5787.tar.xz wireguard-openbsd-a028cb6e3ef359ca9449dc365b01ee031e0e5787.zip |
correct exit value; noted by shinobi@monkey.org
-rw-r--r-- | usr.bin/tput/tput.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c index 5593c94740b..25ad655eb1f 100644 --- a/usr.bin/tput/tput.c +++ b/usr.bin/tput/tput.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tput.c,v 1.9 1999/07/02 16:00:13 millert Exp $ */ +/* $OpenBSD: tput.c,v 1.10 1999/09/12 10:29:01 millert Exp $ */ /* * Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com> @@ -69,7 +69,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tput.c 8.3 (Berkeley) 4/28/95"; #endif -static char rcsid[] = "$OpenBSD: tput.c,v 1.9 1999/07/02 16:00:13 millert Exp $"; +static char rcsid[] = "$OpenBSD: tput.c,v 1.10 1999/09/12 10:29:01 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -210,11 +210,8 @@ main(argc, argv) warnx("Unknown terminfo capability `%s'", p); exitval = 4; } - - if (*argv == NULL) - break; } - exit(*argv ? exitval : 2); + exit(exitval); } static char ** |