summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.ypxfrd
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-04-28 15:18:50 +0000
committerdes <des@FreeBSD.org>2002-04-28 15:18:50 +0000
commite48f76df853e520cafc8b0a6237838fa12f69ea3 (patch)
treed7c3c2d08e4ff1d59c15bcb1a7ee8e74f001cb1d /usr.sbin/rpc.ypxfrd
parent905d923df1beb294d386944f9fb3085807aefa0e (diff)
downloadFreeBSD-src-e48f76df853e520cafc8b0a6237838fa12f69ea3.zip
FreeBSD-src-e48f76df853e520cafc8b0a6237838fa12f69ea3.tar.gz
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
Diffstat (limited to 'usr.sbin/rpc.ypxfrd')
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_server.c6
1 files changed, 3 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud