diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-10-07 02:56:59 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-10-07 02:56:59 +0000 |
commit | 4180788ff0b0d196798f837e12d771df307560ed (patch) | |
tree | a88dc934c05e89a4a453c612cac5eef1c623657a /usr.sbin/rpcbind/rpcb_svc_com.c | |
parent | 0aa282c0b30567b95dbe35e5805b97659f8688cf (diff) | |
download | src-4180788ff0b0d196798f837e12d771df307560ed.tar.gz src-4180788ff0b0d196798f837e12d771df307560ed.zip |
WARNS=3 safety (mostly), use __unused for unused params and unsigned where
needed to avoid warnings about comparing signed and unsigned values.
Notes
Notes:
svn path=/head/; revision=104592
Diffstat (limited to 'usr.sbin/rpcbind/rpcb_svc_com.c')
-rw-r--r-- | usr.sbin/rpcbind/rpcb_svc_com.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr.sbin/rpcbind/rpcb_svc_com.c b/usr.sbin/rpcbind/rpcb_svc_com.c index ad9275ee3845..83b7e44f0242 100644 --- a/usr.sbin/rpcbind/rpcb_svc_com.c +++ b/usr.sbin/rpcbind/rpcb_svc_com.c @@ -121,7 +121,7 @@ static int del_pmaplist __P((RPCB *)); */ /* ARGSUSED */ void * -rpcbproc_set_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, +rpcbproc_set_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum) { RPCB *regp = (RPCB *)arg; @@ -209,7 +209,7 @@ map_set(RPCB *regp, char *owner) */ /* ARGSUSED */ void * -rpcbproc_unset_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, +rpcbproc_unset_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum) { RPCB *regp = (RPCB *)arg; @@ -284,7 +284,7 @@ map_unset(RPCB *regp, char *owner) } void -delete_prog(int prog) +delete_prog(unsigned int prog) { RPCB reg; register rpcblist_ptr rbl; @@ -303,8 +303,8 @@ delete_prog(int prog) } void * -rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp, SVCXPRT *transp, - rpcvers_t rpcbversnum, rpcvers_t verstype) +rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp __unused, + SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype) { static char *uaddr; char *saddr = NULL; @@ -346,8 +346,8 @@ rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp, SVCXPRT *transp, /* ARGSUSED */ void * -rpcbproc_gettime_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, - rpcvers_t rpcbversnum) +rpcbproc_gettime_com(void *arg __unused, struct svc_req *rqstp __unused, + SVCXPRT *transp __unused, rpcvers_t rpcbversnum __unused) { static time_t curtime; @@ -361,8 +361,8 @@ rpcbproc_gettime_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, */ /* ARGSUSED */ void * -rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, - rpcvers_t rpcbversnum) +rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp __unused, + SVCXPRT *transp, rpcvers_t rpcbversnum __unused) { char **uaddrp = (char **)arg; struct netconfig *nconf; @@ -388,8 +388,8 @@ rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, */ /* ARGSUSED */ void * -rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, - rpcvers_t rpcbversnum) +rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp __unused, + SVCXPRT *transp, rpcvers_t rpcbversnum __unused) { struct netbuf *taddr = (struct netbuf *)arg; static char *uaddr; @@ -1297,8 +1297,8 @@ static void find_versions(rpcprog_t prog, char *netid, rpcvers_t *lowvp, rpcvers_t *highvp) { register rpcblist_ptr rbl; - int lowv = 0; - int highv = 0; + unsigned int lowv = 0; + unsigned int highv = 0; for (rbl = list_rbl; rbl != NULL; rbl = rbl->rpcb_next) { if ((rbl->rpcb_map.r_prog != prog) || @@ -1426,7 +1426,7 @@ del_pmaplist(RPCB *arg) { struct pmaplist *pml; struct pmaplist *prevpml, *fnd; - long prot; + unsigned long prot; if (strcmp(arg->r_netid, udptrans) == 0) { /* It is UDP! */ |