diff options
-rw-r--r-- | Modules/nismodule.c | 12 | ||||
-rw-r--r-- | Modules/stropmodule.c | 2 |
2 files changed, 8 insertions, 6 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); diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 426959e..85cab10 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -630,7 +630,7 @@ strop_count(self, args) PyObject *args; { char *s, *sub; - int len, n, j; + int len, n; int i = 0, last = INT_MAX; int m, r; |