diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-12-03 11:32:26 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-12-03 11:32:26 +0000 |
commit | ce16361e1971391339a60ad4359a0272f772bfda (patch) | |
tree | ed2df9546542af1fc54c858e4120def7f1071a52 /usr.sbin/inetd/inetd.c | |
parent | 9355b54319c2ab3d52b8e36dfaed4aa85cfc4482 (diff) | |
download | FreeBSD-src-ce16361e1971391339a60ad4359a0272f772bfda.zip FreeBSD-src-ce16361e1971391339a60ad4359a0272f772bfda.tar.gz |
Tidy up some prototypes:
make sure there is exactly one prototype for each function,
use K&R style definitions everywhere to match dominant style,
make flag_signal take an int to avoid problems if we have
ANSI prototypes and K&R definitions.
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index fce3afb..fa95662 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -784,9 +784,11 @@ main(argc, argv, envp) */ void flag_signal(c) - char c; + int c; { - if (write(signalpipe[1], &c, 1) != 1) { + char ch = c; + + if (write(signalpipe[1], &ch, 1) != 1) { syslog(LOG_ERR, "write: %m"); _exit(EX_OSERR); } @@ -1350,7 +1352,8 @@ enter(cp) } void -enable(struct servtab *sep) +enable(sep) + struct servtab *sep; { if (debug) warnx( @@ -1379,7 +1382,8 @@ enable(struct servtab *sep) } void -disable(struct servtab *sep) +disable(sep) + struct servtab *sep; { if (debug) warnx( |