summaryrefslogtreecommitdiffstats
path: root/Modules/nismodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-07 16:36:14 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-07 16:36:14 (GMT)
commitc501583dfa6dc5e50cf1d36f0770acb87908b109 (patch)
treeb2e6e0e509ec24e6f0b7d8549c55531ece9c84ed /Modules/nismodule.c
parent89bae99c5dec2ed9f8d9abffc2a8ce62df90f165 (diff)
downloadcpython-c501583dfa6dc5e50cf1d36f0770acb87908b109.zip
cpython-c501583dfa6dc5e50cf1d36f0770acb87908b109.tar.gz
cpython-c501583dfa6dc5e50cf1d36f0770acb87908b109.tar.bz2
Make gcc -Wall happy.
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r--Modules/nismodule.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index cadbad0..d99daeb 100644
--- a/Modules/nismodule.c
+++ b/Modules/nismodule.c
@@ -230,7 +230,7 @@ nis_xdr_ypmaplist(xdrs, objp)
return (FALSE);
}
if (!xdr_pointer(xdrs, (char **)&objp->next,
- sizeof(nismaplist), nis_xdr_ypmaplist))
+ sizeof(nismaplist), (xdrproc_t)nis_xdr_ypmaplist))
{
return (FALSE);
}
@@ -260,7 +260,7 @@ nis_xdr_ypresp_maplist(xdrs, objp)
return (FALSE);
}
if (!xdr_pointer(xdrs, (char **)&objp->maps,
- sizeof(nismaplist), nis_xdr_ypmaplist))
+ sizeof(nismaplist), (xdrproc_t)nis_xdr_ypmaplist))
{
return (FALSE);
}
@@ -277,9 +277,11 @@ nisproc_maplist_2(argp, clnt)
static nisresp_maplist res;
memset(&res, 0, sizeof(res));
- if (clnt_call(clnt, YPPROC_MAPLIST, nis_xdr_domainname, (caddr_t)argp,
- nis_xdr_ypresp_maplist, (caddr_t)&res, TIMEOUT)
- != RPC_SUCCESS) {
+ if (clnt_call(clnt, YPPROC_MAPLIST,
+ (xdrproc_t)nis_xdr_domainname, (caddr_t)argp,
+ (xdrproc_t)nis_xdr_ypresp_maplist, (caddr_t)&res,
+ TIMEOUT) != RPC_SUCCESS)
+ {
return (NULL);
}
return (&res);