summaryrefslogtreecommitdiffstats
path: root/libexec/ypxfr
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 /libexec/ypxfr
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 'libexec/ypxfr')
-rw-r--r--libexec/ypxfr/ypxfr_getmap.c4
-rw-r--r--libexec/ypxfr/ypxfr_misc.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ypxfr/ypxfr_getmap.c b/libexec/ypxfr/ypxfr_getmap.c
index 3c3d2e7..4ce5380 100644
--- a/libexec/ypxfr/ypxfr_getmap.c
+++ b/libexec/ypxfr/ypxfr_getmap.c
@@ -84,8 +84,8 @@ create tcp handle"));
ypresp_allfn = callback;
ypresp_data = NULL;
- (void)clnt_call(clnt, YPPROC_ALL, xdr_ypreq_nokey, &req,
- xdr_ypresp_all_seq, &status, timeout);
+ (void)clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &req,
+ (xdrproc_t)xdr_ypresp_all_seq, &status, timeout);
clnt_destroy(clnt);
diff --git a/libexec/ypxfr/ypxfr_misc.c b/libexec/ypxfr/ypxfr_misc.c
index 3c33286..f64f69d 100644
--- a/libexec/ypxfr/ypxfr_misc.c
+++ b/libexec/ypxfr/ypxfr_misc.c
@@ -263,7 +263,7 @@ ypxfr_match(char *server, char *domain, char *map, char *key,
CLIENT *clnt;
static char buf[YPMAXRECORD + 2];
- bzero((char *)buf, sizeof(buf));
+ bzero(buf, sizeof(buf));
if ((clnt = clnt_create(server, YPPROG,YPVERS,"udp")) == NULL) {
yp_error("failed to create UDP handle: %s",
@@ -286,11 +286,11 @@ ypxfr_match(char *server, char *domain, char *map, char *key,
clnt_destroy(clnt);
if (ypval->stat != YP_TRUE) {
- xdr_free(xdr_ypresp_val, (char *)ypval);
+ xdr_free((xdrproc_t)xdr_ypresp_val, ypval);
return(0);
}
- xdr_free(xdr_ypresp_val, (char *)ypval);
+ xdr_free((xdrproc_t)xdr_ypresp_val, ypval);
return(1);
}
OpenPOWER on IntegriCloud