diff options
author | des <des@FreeBSD.org> | 2002-04-28 15:18:50 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-28 15:18:50 +0000 |
commit | e48f76df853e520cafc8b0a6237838fa12f69ea3 (patch) | |
tree | d7c3c2d08e4ff1d59c15bcb1a7ee8e74f001cb1d /libexec/ypxfr | |
parent | 905d923df1beb294d386944f9fb3085807aefa0e (diff) | |
download | FreeBSD-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.c | 4 | ||||
-rw-r--r-- | libexec/ypxfr/ypxfr_misc.c | 6 |
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); } |