diff options
author | imp <imp@FreeBSD.org> | 2002-02-05 21:06:56 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-02-05 21:06:56 +0000 |
commit | 9d4730cf181e1e1c69ac119ab18ae3ae3ac0f0d6 (patch) | |
tree | 9a1dbcebb03dc8719cb20fa539082da1904584e2 /libexec/talkd/talkd.c | |
parent | d0f44978bc7960bcc2c2286a05177c175f11926e (diff) | |
download | FreeBSD-src-9d4730cf181e1e1c69ac119ab18ae3ae3ac0f0d6.zip FreeBSD-src-9d4730cf181e1e1c69ac119ab18ae3ae3ac0f0d6.tar.gz |
o Move externs to extern.h
o Use new-style prototypes exclusively rather than the old foo() style.
o Use new-style function definitions.
o remove register
o make functions passed to signal have the right signature.
o do minor const poisoning.
Diffstat (limited to 'libexec/talkd/talkd.c')
-rw-r--r-- | libexec/talkd/talkd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c index 551fd5b..d35c0e3 100644 --- a/libexec/talkd/talkd.c +++ b/libexec/talkd/talkd.c @@ -66,6 +66,8 @@ static const char rcsid[] = #include <time.h> #include <unistd.h> +#include "extern.h" + CTL_MSG request; CTL_RESPONSE response; @@ -78,13 +80,8 @@ char hostname[MAXHOSTNAMELEN]; #define TIMEOUT 30 #define MAXIDLE 120 -void process_request __P((CTL_MSG *, CTL_RESPONSE *)); -void timeout(); - int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { register CTL_MSG *mp = &request; int cc; @@ -130,7 +127,7 @@ main(argc, argv) } void -timeout() +timeout(int sig __unused) { int save_errno = errno; |