summaryrefslogtreecommitdiffstats
path: root/Modules/nismodule.c
diff options
context:
space:
mode:
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);