xdrproc_t casts

This commit is contained in:
christos 1999-01-31 20:46:12 +00:00
parent caaf1528bc
commit b2a14ab2d3
8 changed files with 39 additions and 39 deletions

View File

@ -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 <thorpej@NetBSD.ORG>. * Copyright (c) 1996 Jason R. Thorpe <thorpej@NetBSD.ORG>.
@ -38,7 +38,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
/* /*
@ -381,7 +381,7 @@ xdr_ypmaplist(xdrs, objp)
return FALSE; return FALSE;
if (!xdr_pointer(xdrs, (caddr_t *)&objp->ypml_next, if (!xdr_pointer(xdrs, (caddr_t *)&objp->ypml_next,
sizeof(struct ypmaplist), xdr_ypmaplist)) sizeof(struct ypmaplist), (xdrproc_t)xdr_ypmaplist))
return FALSE; return FALSE;
return TRUE; return TRUE;
@ -396,7 +396,7 @@ xdr_ypresp_maplist(xdrs, objp)
return FALSE; return FALSE;
if (!xdr_pointer(xdrs, (caddr_t *)&objp->list, if (!xdr_pointer(xdrs, (caddr_t *)&objp->list,
sizeof(struct ypmaplist), xdr_ypmaplist)) sizeof(struct ypmaplist), (xdrproc_t)xdr_ypmaplist))
return FALSE; return FALSE;
return TRUE; return TRUE;

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -85,8 +85,8 @@ yp_all(indomain, inmap, incallback)
yprnk.domain = indomain; yprnk.domain = indomain;
yprnk.map = inmap; yprnk.map = inmap;
status = clnt_call(clnt, YPPROC_ALL, xdr_ypreq_nokey, &yprnk, status = clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &yprnk,
xdr_ypall, (char *)(void *)incallback, _yplib_timeout); (xdrproc_t)xdr_ypall, (char *)(void *)incallback, _yplib_timeout);
clnt_destroy(clnt); clnt_destroy(clnt);
/* not really needed... */ /* not really needed... */

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -84,9 +84,8 @@ again:
yprnk.map = inmap; yprnk.map = inmap;
(void)memset(&yprkv, 0, sizeof yprkv); (void)memset(&yprkv, 0, sizeof yprkv);
r = clnt_call(ysd->dom_client, YPPROC_FIRST, r = clnt_call(ysd->dom_client, YPPROC_FIRST, (xdrproc_t)xdr_ypreq_nokey,
xdr_ypreq_nokey, &yprnk, xdr_ypresp_key_val, &yprkv, &yprnk, (xdrproc_t)xdr_ypresp_key_val, &yprkv, _yplib_timeout);
_yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (++nerrs == _yplib_nerrs) { if (++nerrs == _yplib_nerrs) {
clnt_perror(ysd->dom_client, "yp_first: clnt_call"); clnt_perror(ysd->dom_client, "yp_first: clnt_call");
@ -113,7 +112,7 @@ again:
(*outval)[*outvallen] = '\0'; (*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); __yp_unbind(ysd);
if (r != 0) { if (r != 0) {
if (*outkey) { if (*outkey) {
@ -165,9 +164,8 @@ again:
yprk.keydat.dsize = inkeylen; yprk.keydat.dsize = inkeylen;
(void)memset(&yprkv, 0, sizeof yprkv); (void)memset(&yprkv, 0, sizeof yprkv);
r = clnt_call(ysd->dom_client, YPPROC_NEXT, r = clnt_call(ysd->dom_client, YPPROC_NEXT, (xdrproc_t)xdr_ypreq_key,
xdr_ypreq_key, &yprk, xdr_ypresp_key_val, &yprkv, &yprk, (xdrproc_t)xdr_ypresp_key_val, &yprkv, _yplib_timeout);
_yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (++nerrs == _yplib_nerrs) { if (++nerrs == _yplib_nerrs) {
clnt_perror(ysd->dom_client, "yp_next: clnt_call"); clnt_perror(ysd->dom_client, "yp_next: clnt_call");
@ -194,7 +192,7 @@ again:
(*outval)[*outvallen] = '\0'; (*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); __yp_unbind(ysd);
if (r != 0) { if (r != 0) {
if (*outkey) { if (*outkey) {

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -68,8 +68,8 @@ again:
memset(&ypml, 0, sizeof ypml); memset(&ypml, 0, sizeof ypml);
r = clnt_call(ysd->dom_client, YPPROC_MAPLIST, r = clnt_call(ysd->dom_client, YPPROC_MAPLIST,
xdr_ypdomain_wrap_string, &indomain, xdr_ypresp_maplist, (xdrproc_t)xdr_ypdomain_wrap_string, &indomain,
&ypml, _yplib_timeout); (xdrproc_t)xdr_ypresp_maplist, &ypml, _yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (++nerrs == _yplib_nerrs) { if (++nerrs == _yplib_nerrs) {
clnt_perror(ysd->dom_client, "yp_maplist: clnt_call"); clnt_perror(ysd->dom_client, "yp_maplist: clnt_call");

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -82,8 +82,8 @@ again:
(void)memset(&yprm, 0, sizeof yprm); (void)memset(&yprm, 0, sizeof yprm);
r = clnt_call(ysd->dom_client, YPPROC_MASTER, r = clnt_call(ysd->dom_client, YPPROC_MASTER,
xdr_ypreq_nokey, &yprnk, xdr_ypresp_master, &yprm, (xdrproc_t)xdr_ypreq_nokey, &yprnk,
_yplib_timeout); (xdrproc_t)xdr_ypresp_master, &yprm, _yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (++nerrs == _yplib_nerrs) { if (++nerrs == _yplib_nerrs) {
clnt_perror(ysd->dom_client, "yp_master: clnt_call"); clnt_perror(ysd->dom_client, "yp_master: clnt_call");
@ -96,7 +96,7 @@ again:
if ((*outname = strdup(yprm.master)) == NULL) if ((*outname = strdup(yprm.master)) == NULL)
r = YPERR_RESRC; r = YPERR_RESRC;
} }
xdr_free(xdr_ypresp_master, (char *)(void *)&yprm); xdr_free((xdrproc_t)xdr_ypresp_master, (char *)(void *)&yprm);
__yp_unbind(ysd); __yp_unbind(ysd);
if (r != 0) { if (r != 0) {
if (*outname) { if (*outname) {

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -220,7 +220,8 @@ again:
memset(&yprv, 0, sizeof yprv); memset(&yprv, 0, sizeof yprv);
r = clnt_call(ysd->dom_client, YPPROC_MATCH, 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); _yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (++nerrs == _yplib_nerrs) { if (++nerrs == _yplib_nerrs) {
@ -243,7 +244,7 @@ again:
r = YPERR_RESRC; r = YPERR_RESRC;
#endif #endif
} }
xdr_free(xdr_ypresp_val, (char *)(void *)&yprv); xdr_free((xdrproc_t)xdr_ypresp_val, (char *)(void *)&yprv);
__yp_unbind(ysd); __yp_unbind(ysd);
if (r != 0) { if (r != 0) {
if (*outval) { if (*outval) {

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -79,7 +79,8 @@ again:
(void)memset(&ypro, 0, sizeof ypro); (void)memset(&ypro, 0, sizeof ypro);
r = clnt_call(ysd->dom_client, YPPROC_ORDER, 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); _yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (++nerrs == _yplib_nerrs) { if (++nerrs == _yplib_nerrs) {
@ -95,7 +96,7 @@ again:
goto again; goto again;
} }
*outorder = ypro.ordernum; *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); r = ypprot_err(ypro.status);
bail: bail:
__yp_unbind(ysd); __yp_unbind(ysd);

View File

@ -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 <deraadt@fsa.ca> * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -33,7 +33,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #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 #endif
#include "namespace.h" #include "namespace.h"
@ -201,8 +201,8 @@ trynet:
return YPERR_YPBIND; return YPERR_YPBIND;
} }
r = clnt_call(client, YPBINDPROC_DOMAIN, r = clnt_call(client, YPBINDPROC_DOMAIN,
xdr_ypdomain_wrap_string, &dom, xdr_ypbind_resp, (xdrproc_t)xdr_ypdomain_wrap_string, &dom,
&ypbr, _yplib_timeout); (xdrproc_t)xdr_ypbind_resp, &ypbr, _yplib_timeout);
if (r != RPC_SUCCESS) { if (r != RPC_SUCCESS) {
if (new == 0 && ++nerrs == _yplib_nerrs) { if (new == 0 && ++nerrs == _yplib_nerrs) {
nerrs = 0; nerrs = 0;