diff options
author | des <des@FreeBSD.org> | 2002-02-06 15:26:07 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-06 15:26:07 +0000 |
commit | d7b064e238d98e1c9942cfb6e53c0767893310b1 (patch) | |
tree | 9c2a46d61c0b1ec2538854e870b6861acfd2ee7a /usr.sbin/rpc.ypupdated/ypupdated_server.c | |
parent | 0f2cb9b020b907000a28323fc57a82fdb7d6626d (diff) | |
download | FreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.zip FreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.tar.gz |
ANSIfy and remove some dead code.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/rpc.ypupdated/ypupdated_server.c')
-rw-r--r-- | usr.sbin/rpc.ypupdated/ypupdated_server.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/usr.sbin/rpc.ypupdated/ypupdated_server.c b/usr.sbin/rpc.ypupdated/ypupdated_server.c index 08f9f56..fb1017d 100644 --- a/usr.sbin/rpc.ypupdated/ypupdated_server.c +++ b/usr.sbin/rpc.ypupdated/ypupdated_server.c @@ -66,8 +66,8 @@ int forked = 0; #define WINDOW (60*60) #endif -static enum auth_stat yp_checkauth(svcreq) - struct svc_req *svcreq; +static enum auth_stat +yp_checkauth(struct svc_req *svcreq) { struct authdes_cred *des_cred; @@ -93,9 +93,8 @@ was too large -- possible spoof attempt"); } } -unsigned int *ypu_change_1_svc(args, svcreq) - struct ypupdate_args *args; - struct svc_req *svcreq; +unsigned int * +ypu_change_1_svc(struct ypupdate_args *args, struct svc_req *svcreq) { struct authdes_cred *des_cred; static int res; @@ -128,9 +127,8 @@ unsigned int *ypu_change_1_svc(args, svcreq) return (&res); } -unsigned int *ypu_insert_1_svc(args, svcreq) - struct ypupdate_args *args; - struct svc_req *svcreq; +unsigned int * +ypu_insert_1_svc(struct ypupdate_args *args, struct svc_req *svcreq) { struct authdes_cred *des_cred; static int res; @@ -163,9 +161,8 @@ unsigned int *ypu_insert_1_svc(args, svcreq) return (&res); } -unsigned int *ypu_delete_1_svc(args, svcreq) - struct ypdelete_args *args; - struct svc_req *svcreq; +unsigned int * +ypu_delete_1_svc(struct ypdelete_args *args, struct svc_req *svcreq) { struct authdes_cred *des_cred; static int res; @@ -198,9 +195,8 @@ unsigned int *ypu_delete_1_svc(args, svcreq) return (&res); } -unsigned int *ypu_store_1_svc(args, svcreq) - struct ypupdate_args *args; - struct svc_req *svcreq; +unsigned int * +ypu_store_1_svc(struct ypupdate_args *args, struct svc_req *svcreq) { struct authdes_cred *des_cred; static int res; |