diff options
author | Toomas Soome <tsoome@me.com> | 2017-07-16 12:42:49 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-04-06 15:44:06 -0400 |
commit | 11d7f7ff53e371b4622d8a4e0dd50b0e96ac0475 (patch) | |
tree | 0ab201c5c568a8d7040987d8dae5400f93a31047 /usr/src/cmd/tcpd | |
parent | 430755dfc4bf5c4bf947290d2613a6c25d85ea0f (diff) | |
download | illumos-joyent-11d7f7ff53e371b4622d8a4e0dd50b0e96ac0475.tar.gz |
9372 tcpd: this statement may fall through
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/tcpd')
-rw-r--r-- | usr/src/cmd/tcpd/safe_finger.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/src/cmd/tcpd/safe_finger.c b/usr/src/cmd/tcpd/safe_finger.c index be41d9bc0f..fcf4a22084 100644 --- a/usr/src/cmd/tcpd/safe_finger.c +++ b/usr/src/cmd/tcpd/safe_finger.c @@ -14,16 +14,13 @@ * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. */ -#ifndef lint -static char sccsid[] = "@(#) safe_finger.c 1.4 94/12/28 17:42:41"; -#endif - /* System libraries */ #include <sys/types.h> #include <sys/stat.h> #include <signal.h> #include <stdio.h> +#include <stdlib.h> #include <ctype.h> #include <pwd.h> @@ -40,6 +37,7 @@ char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin"; #define UNPRIV_NAME "nobody" /* Preferred privilege level */ #define UNPRIV_UGID 32767 /* Default uid and gid */ +void perror_exit(char *text) __NORETURN; int finger_pid; void cleanup(sig) @@ -136,8 +134,8 @@ char **argv; /* perror_exit - report system error text and terminate */ -void perror_exit(text) -char *text; +void +perror_exit(char *text) { perror(text); exit(1); |