From d7b064e238d98e1c9942cfb6e53c0767893310b1 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 6 Feb 2002 15:26:07 +0000 Subject: ANSIfy and remove some dead code. Sponsored by: DARPA, NAI Labs --- usr.sbin/rpc.yppasswdd/yppasswdd_main.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'usr.sbin/rpc.yppasswdd/yppasswdd_main.c') diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c index be42263..b261feb 100644 --- a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c +++ b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c @@ -97,8 +97,8 @@ int resvport = 1; int inplace = 0; char *sockname = YP_SOCKNAME; -static void terminate(sig) - int sig; +static void +terminate(int sig) { rpcb_unset(YPPASSWDPROG, YPPASSWDVERS, NULL); rpcb_unset(MASTER_YPPASSWDPROG, MASTER_YPPASSWDVERS, NULL); @@ -106,8 +106,8 @@ static void terminate(sig) exit(0); } -static void reload(sig) - int sig; +static void +reload(int sig) { load_securenets(); } @@ -142,7 +142,8 @@ closedown(int sig) (void) alarm(_RPCSVC_CLOSEDOWN/2); } -static void usage() +static void +usage(void) { fprintf(stderr, "%s\n%s\n", "usage: rpc.yppasswdd [-t master.passwd file] [-d domain] [-p path] [-s]", @@ -151,9 +152,7 @@ static void usage() } int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { register SVCXPRT *transp = NULL; struct sockaddr_in saddr; -- cgit v1.1