From e48f76df853e520cafc8b0a6237838fa12f69ea3 Mon Sep 17 00:00:00 2001 From: des Date: Sun, 28 Apr 2002 15:18:50 +0000 Subject: Spell void * as void * rather than caddr_t. This is complicated by the fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs --- usr.sbin/rpc.ypxfrd/ypxfrd_server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/rpc.ypxfrd') diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_server.c b/usr.sbin/rpc.ypxfrd/ypxfrd_server.c index f1b6ba1..3b53004 100644 --- a/usr.sbin/rpc.ypxfrd/ypxfrd_server.c +++ b/usr.sbin/rpc.ypxfrd/ypxfrd_server.c @@ -103,7 +103,7 @@ ypxfrd_getmap_1_svc(ypxfr_mapname *argp, struct svc_req *rqstp) snprintf (buf, sizeof(buf), "%s/%s/%s", yp_dir, argp->xfrdomain, argp->xfrmap); - if (access((char *)&buf, R_OK) == -1) { + if (access(buf, R_OK) == -1) { result.xfr_u.xfrstat = XFR_ACCESS; return(&result); } @@ -132,14 +132,14 @@ ypxfrd_getmap_1_svc(ypxfr_mapname *argp, struct svc_req *rqstp) forked++; } #endif - if ((fp = open((char *)&buf, O_RDONLY)) == -1) { + if ((fp = open(buf, O_RDONLY)) == -1) { result.xfr_u.xfrstat = XFR_READ_ERR; return(&result); } /* Start sending the file. */ - svc_sendreply(rqstp->rq_xprt, xdr_my_xfr, (char *)&result); + svc_sendreply(rqstp->rq_xprt, (xdrproc_t)xdr_my_xfr, &result); close(fp); -- cgit v1.1