diff --git a/lib/libc/yp/xdryp.c b/lib/libc/yp/xdryp.c index c94fb3557381..6936671aa6d3 100644 --- a/lib/libc/yp/xdryp.c +++ b/lib/libc/yp/xdryp.c @@ -1,4 +1,4 @@ -/* $NetBSD: xdryp.c,v 1.21 1998/11/15 17:10:30 christos Exp $ */ +/* $NetBSD: xdryp.c,v 1.22 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1996 Jason R. Thorpe . @@ -38,7 +38,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: xdryp.c,v 1.21 1998/11/15 17:10:30 christos Exp $"); +__RCSID("$NetBSD: xdryp.c,v 1.22 1999/01/31 20:46:12 christos Exp $"); #endif /* @@ -381,7 +381,7 @@ xdr_ypmaplist(xdrs, objp) return FALSE; if (!xdr_pointer(xdrs, (caddr_t *)&objp->ypml_next, - sizeof(struct ypmaplist), xdr_ypmaplist)) + sizeof(struct ypmaplist), (xdrproc_t)xdr_ypmaplist)) return FALSE; return TRUE; @@ -396,7 +396,7 @@ xdr_ypresp_maplist(xdrs, objp) return FALSE; if (!xdr_pointer(xdrs, (caddr_t *)&objp->list, - sizeof(struct ypmaplist), xdr_ypmaplist)) + sizeof(struct ypmaplist), (xdrproc_t)xdr_ypmaplist)) return FALSE; return TRUE; diff --git a/lib/libc/yp/yp_all.c b/lib/libc/yp/yp_all.c index db11c45db641..5102a213a6a0 100644 --- a/lib/libc/yp/yp_all.c +++ b/lib/libc/yp/yp_all.c @@ -1,4 +1,4 @@ -/* $NetBSD: yp_all.c,v 1.8 1998/11/15 17:10:30 christos Exp $ */ +/* $NetBSD: yp_all.c,v 1.9 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yp_all.c,v 1.8 1998/11/15 17:10:30 christos Exp $"); +__RCSID("$NetBSD: yp_all.c,v 1.9 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -85,8 +85,8 @@ yp_all(indomain, inmap, incallback) yprnk.domain = indomain; yprnk.map = inmap; - status = clnt_call(clnt, YPPROC_ALL, xdr_ypreq_nokey, &yprnk, - xdr_ypall, (char *)(void *)incallback, _yplib_timeout); + status = clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &yprnk, + (xdrproc_t)xdr_ypall, (char *)(void *)incallback, _yplib_timeout); clnt_destroy(clnt); /* not really needed... */ diff --git a/lib/libc/yp/yp_first.c b/lib/libc/yp/yp_first.c index 8e627e247ebe..406074e62c75 100644 --- a/lib/libc/yp/yp_first.c +++ b/lib/libc/yp/yp_first.c @@ -1,4 +1,4 @@ -/* $NetBSD: yp_first.c,v 1.9 1998/11/15 17:10:30 christos Exp $ */ +/* $NetBSD: yp_first.c,v 1.10 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yp_first.c,v 1.9 1998/11/15 17:10:30 christos Exp $"); +__RCSID("$NetBSD: yp_first.c,v 1.10 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -84,9 +84,8 @@ again: yprnk.map = inmap; (void)memset(&yprkv, 0, sizeof yprkv); - r = clnt_call(ysd->dom_client, YPPROC_FIRST, - xdr_ypreq_nokey, &yprnk, xdr_ypresp_key_val, &yprkv, - _yplib_timeout); + r = clnt_call(ysd->dom_client, YPPROC_FIRST, (xdrproc_t)xdr_ypreq_nokey, + &yprnk, (xdrproc_t)xdr_ypresp_key_val, &yprkv, _yplib_timeout); if (r != RPC_SUCCESS) { if (++nerrs == _yplib_nerrs) { clnt_perror(ysd->dom_client, "yp_first: clnt_call"); @@ -113,7 +112,7 @@ again: (*outval)[*outvallen] = '\0'; } } - xdr_free(xdr_ypresp_key_val, (char *)(void *)&yprkv); + xdr_free((xdrproc_t)xdr_ypresp_key_val, (char *)(void *)&yprkv); __yp_unbind(ysd); if (r != 0) { if (*outkey) { @@ -165,9 +164,8 @@ again: yprk.keydat.dsize = inkeylen; (void)memset(&yprkv, 0, sizeof yprkv); - r = clnt_call(ysd->dom_client, YPPROC_NEXT, - xdr_ypreq_key, &yprk, xdr_ypresp_key_val, &yprkv, - _yplib_timeout); + r = clnt_call(ysd->dom_client, YPPROC_NEXT, (xdrproc_t)xdr_ypreq_key, + &yprk, (xdrproc_t)xdr_ypresp_key_val, &yprkv, _yplib_timeout); if (r != RPC_SUCCESS) { if (++nerrs == _yplib_nerrs) { clnt_perror(ysd->dom_client, "yp_next: clnt_call"); @@ -194,7 +192,7 @@ again: (*outval)[*outvallen] = '\0'; } } - xdr_free(xdr_ypresp_key_val, (char *)(void *)&yprkv); + xdr_free((xdrproc_t)xdr_ypresp_key_val, (char *)(void *)&yprkv); __yp_unbind(ysd); if (r != 0) { if (*outkey) { diff --git a/lib/libc/yp/yp_maplist.c b/lib/libc/yp/yp_maplist.c index 0bd6f7c27821..1d80cb321529 100644 --- a/lib/libc/yp/yp_maplist.c +++ b/lib/libc/yp/yp_maplist.c @@ -1,4 +1,4 @@ -/* $NetBSD: yp_maplist.c,v 1.6 1997/07/21 14:09:27 jtc Exp $ */ +/* $NetBSD: yp_maplist.c,v 1.7 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yp_maplist.c,v 1.6 1997/07/21 14:09:27 jtc Exp $"); +__RCSID("$NetBSD: yp_maplist.c,v 1.7 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -68,8 +68,8 @@ again: memset(&ypml, 0, sizeof ypml); r = clnt_call(ysd->dom_client, YPPROC_MAPLIST, - xdr_ypdomain_wrap_string, &indomain, xdr_ypresp_maplist, - &ypml, _yplib_timeout); + (xdrproc_t)xdr_ypdomain_wrap_string, &indomain, + (xdrproc_t)xdr_ypresp_maplist, &ypml, _yplib_timeout); if (r != RPC_SUCCESS) { if (++nerrs == _yplib_nerrs) { clnt_perror(ysd->dom_client, "yp_maplist: clnt_call"); diff --git a/lib/libc/yp/yp_master.c b/lib/libc/yp/yp_master.c index 927211e7e5bd..12260086d05f 100644 --- a/lib/libc/yp/yp_master.c +++ b/lib/libc/yp/yp_master.c @@ -1,4 +1,4 @@ -/* $NetBSD: yp_master.c,v 1.9 1998/11/15 17:10:31 christos Exp $ */ +/* $NetBSD: yp_master.c,v 1.10 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yp_master.c,v 1.9 1998/11/15 17:10:31 christos Exp $"); +__RCSID("$NetBSD: yp_master.c,v 1.10 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -82,8 +82,8 @@ again: (void)memset(&yprm, 0, sizeof yprm); r = clnt_call(ysd->dom_client, YPPROC_MASTER, - xdr_ypreq_nokey, &yprnk, xdr_ypresp_master, &yprm, - _yplib_timeout); + (xdrproc_t)xdr_ypreq_nokey, &yprnk, + (xdrproc_t)xdr_ypresp_master, &yprm, _yplib_timeout); if (r != RPC_SUCCESS) { if (++nerrs == _yplib_nerrs) { clnt_perror(ysd->dom_client, "yp_master: clnt_call"); @@ -96,7 +96,7 @@ again: if ((*outname = strdup(yprm.master)) == NULL) r = YPERR_RESRC; } - xdr_free(xdr_ypresp_master, (char *)(void *)&yprm); + xdr_free((xdrproc_t)xdr_ypresp_master, (char *)(void *)&yprm); __yp_unbind(ysd); if (r != 0) { if (*outname) { diff --git a/lib/libc/yp/yp_match.c b/lib/libc/yp/yp_match.c index 4b5c48f6b6d0..64f1dbf7f8ed 100644 --- a/lib/libc/yp/yp_match.c +++ b/lib/libc/yp/yp_match.c @@ -1,4 +1,4 @@ -/* $NetBSD: yp_match.c,v 1.11 1998/11/15 17:10:31 christos Exp $ */ +/* $NetBSD: yp_match.c,v 1.12 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yp_match.c,v 1.11 1998/11/15 17:10:31 christos Exp $"); +__RCSID("$NetBSD: yp_match.c,v 1.12 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -220,7 +220,8 @@ again: memset(&yprv, 0, sizeof yprv); r = clnt_call(ysd->dom_client, YPPROC_MATCH, - xdr_ypreq_key, &yprk, xdr_ypresp_val, &yprv, + (xdrproc_t)xdr_ypreq_key, &yprk, + (xdrproc_t)xdr_ypresp_val, &yprv, _yplib_timeout); if (r != RPC_SUCCESS) { if (++nerrs == _yplib_nerrs) { @@ -243,7 +244,7 @@ again: r = YPERR_RESRC; #endif } - xdr_free(xdr_ypresp_val, (char *)(void *)&yprv); + xdr_free((xdrproc_t)xdr_ypresp_val, (char *)(void *)&yprv); __yp_unbind(ysd); if (r != 0) { if (*outval) { diff --git a/lib/libc/yp/yp_order.c b/lib/libc/yp/yp_order.c index 5a18efaf6cc9..567382980e50 100644 --- a/lib/libc/yp/yp_order.c +++ b/lib/libc/yp/yp_order.c @@ -1,4 +1,4 @@ -/* $NetBSD: yp_order.c,v 1.8 1998/11/15 17:10:31 christos Exp $ */ +/* $NetBSD: yp_order.c,v 1.9 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yp_order.c,v 1.8 1998/11/15 17:10:31 christos Exp $"); +__RCSID("$NetBSD: yp_order.c,v 1.9 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -79,7 +79,8 @@ again: (void)memset(&ypro, 0, sizeof ypro); r = clnt_call(ysd->dom_client, YPPROC_ORDER, - xdr_ypreq_nokey, &yprnk, xdr_ypresp_order, &ypro, + (xdrproc_t)xdr_ypreq_nokey, &yprnk, + (xdrproc_t)xdr_ypresp_order, &ypro, _yplib_timeout); if (r != RPC_SUCCESS) { if (++nerrs == _yplib_nerrs) { @@ -95,7 +96,7 @@ again: goto again; } *outorder = ypro.ordernum; - xdr_free(xdr_ypresp_order, (char *)(void *)&ypro); + xdr_free((xdrproc_t)xdr_ypresp_order, (char *)(void *)&ypro); r = ypprot_err(ypro.status); bail: __yp_unbind(ysd); diff --git a/lib/libc/yp/yplib.c b/lib/libc/yp/yplib.c index bb97167a32f7..33213d4a6e50 100644 --- a/lib/libc/yp/yplib.c +++ b/lib/libc/yp/yplib.c @@ -1,4 +1,4 @@ -/* $NetBSD: yplib.c,v 1.32 1998/07/27 12:29:21 mycroft Exp $ */ +/* $NetBSD: yplib.c,v 1.33 1999/01/31 20:46:12 christos Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt @@ -33,7 +33,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: yplib.c,v 1.32 1998/07/27 12:29:21 mycroft Exp $"); +__RCSID("$NetBSD: yplib.c,v 1.33 1999/01/31 20:46:12 christos Exp $"); #endif #include "namespace.h" @@ -201,8 +201,8 @@ trynet: return YPERR_YPBIND; } r = clnt_call(client, YPBINDPROC_DOMAIN, - xdr_ypdomain_wrap_string, &dom, xdr_ypbind_resp, - &ypbr, _yplib_timeout); + (xdrproc_t)xdr_ypdomain_wrap_string, &dom, + (xdrproc_t)xdr_ypbind_resp, &ypbr, _yplib_timeout); if (r != RPC_SUCCESS) { if (new == 0 && ++nerrs == _yplib_nerrs) { nerrs = 0;