From 4f7593692290f2ccb9fdc55ac231dcfbfc5ea4be Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 26 Oct 2003 03:43:35 +0000 Subject: clnt_call takes args of type xdrproc_t. --- lib/librpcsvc/rnusers.c | 8 ++++---- lib/librpcsvc/rstat.c | 8 ++++---- lib/librpcsvc/rwall.c | 4 ++-- lib/librpcsvc/yp_passwd.c | 3 ++- lib/librpcsvc/yp_update.c | 20 ++++++++++++-------- 5 files changed, 24 insertions(+), 19 deletions(-) (limited to 'lib/librpcsvc') diff --git a/lib/librpcsvc/rnusers.c b/lib/librpcsvc/rnusers.c index 538a2c9cc5f5..49cab076e476 100644 --- a/lib/librpcsvc/rnusers.c +++ b/lib/librpcsvc/rnusers.c @@ -52,8 +52,8 @@ rusers(host, up) struct utmpidlearr *up; { return (callrpc(host, RUSERSPROG, RUSERSVERS_IDLE, RUSERSPROC_NAMES, - xdr_void, (char *) NULL, - xdr_utmpidlearr, (char *) up)); + (xdrproc_t)xdr_void, (char *) NULL, + (xdrproc_t)xdr_utmpidlearr, (char *) up)); } int @@ -63,8 +63,8 @@ rnusers(host) int nusers; if (callrpc(host, RUSERSPROG, RUSERSVERS_ORIG, RUSERSPROC_NUM, - xdr_void, (char *) NULL, - xdr_u_long, (char *) &nusers) != 0) + (xdrproc_t)xdr_void, (char *) NULL, + (xdrproc_t)xdr_u_long, (char *) &nusers) != 0) return (-1); else return (nusers); diff --git a/lib/librpcsvc/rstat.c b/lib/librpcsvc/rstat.c index 1d1890804071..1c19c4e841d4 100644 --- a/lib/librpcsvc/rstat.c +++ b/lib/librpcsvc/rstat.c @@ -51,8 +51,8 @@ rstat(host, statp) struct statstime *statp; { return (callrpc(host, RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS, - xdr_void, (char *) NULL, - xdr_statstime, (char *) statp)); + (xdrproc_t)xdr_void, (char *) NULL, + (xdrproc_t)xdr_statstime, (char *) statp)); } int @@ -62,8 +62,8 @@ havedisk(host) long have; if (callrpc(host, RSTATPROG, RSTATVERS_SWTCH, RSTATPROC_HAVEDISK, - xdr_void, (char *) NULL, - xdr_long, (char *) &have) != 0) + (xdrproc_t)xdr_void, (char *) NULL, + (xdrproc_t)xdr_long, (char *) &have) != 0) return (-1); else return (have); diff --git a/lib/librpcsvc/rwall.c b/lib/librpcsvc/rwall.c index c530523c49c5..dd7b590d9506 100644 --- a/lib/librpcsvc/rwall.c +++ b/lib/librpcsvc/rwall.c @@ -51,6 +51,6 @@ rwall(host, msg) char *msg; { return (callrpc(host, WALLPROG, WALLVERS, WALLPROC_WALL, - xdr_wrapstring, (char *) &msg, - xdr_void, (char *) NULL)); + (xdrproc_t)xdr_wrapstring, (char *) &msg, + (xdrproc_t)xdr_void, (char *) NULL)); } diff --git a/lib/librpcsvc/yp_passwd.c b/lib/librpcsvc/yp_passwd.c index 1c6e6aade976..e7c59145fa2e 100644 --- a/lib/librpcsvc/yp_passwd.c +++ b/lib/librpcsvc/yp_passwd.c @@ -76,7 +76,8 @@ _yppasswd(char *oldpass, struct x_passwd *newpw) } rval = callrpc(server, YPPASSWDPROG, YPPASSWDVERS, YPPASSWDPROC_UPDATE, - xdr_yppasswd, (char *)&yppasswd, xdr_int, (char *)&result); + (xdrproc_t)xdr_yppasswd, (char *)&yppasswd, + (xdrproc_t)xdr_int, (char *)&result); free(server); if (rval || result) diff --git a/lib/librpcsvc/yp_update.c b/lib/librpcsvc/yp_update.c index 5f1c7db987e6..1d2848d4ea61 100644 --- a/lib/librpcsvc/yp_update.c +++ b/lib/librpcsvc/yp_update.c @@ -126,8 +126,9 @@ yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen, upargs.datum.yp_buf_len = datalen; upargs.datum.yp_buf_val = data; - if ((rval = clnt_call(clnt, YPU_CHANGE, xdr_ypupdate_args, - &upargs, xdr_u_int, &res, timeout)) != RPC_SUCCESS) { + if ((rval = clnt_call(clnt, YPU_CHANGE, + (xdrproc_t)xdr_ypupdate_args, &upargs, + (xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) { if (rval == RPC_AUTHERROR) res = YPERR_ACCESS; else @@ -142,8 +143,9 @@ yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen, upargs.datum.yp_buf_len = datalen; upargs.datum.yp_buf_val = data; - if ((rval = clnt_call(clnt, YPU_INSERT, xdr_ypupdate_args, - &upargs, xdr_u_int, &res, timeout)) != RPC_SUCCESS) { + if ((rval = clnt_call(clnt, YPU_INSERT, + (xdrproc_t)xdr_ypupdate_args, &upargs, + (xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) { if (rval == RPC_AUTHERROR) res = YPERR_ACCESS; else @@ -156,8 +158,9 @@ yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen, delargs.key.yp_buf_len = keylen; delargs.key.yp_buf_val = key; - if ((rval = clnt_call(clnt, YPU_DELETE, xdr_ypdelete_args, - &delargs, xdr_u_int, &res, timeout)) != RPC_SUCCESS) { + if ((rval = clnt_call(clnt, YPU_DELETE, + (xdrproc_t)xdr_ypdelete_args, &delargs, + (xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) { if (rval == RPC_AUTHERROR) res = YPERR_ACCESS; else @@ -172,8 +175,9 @@ yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen, upargs.datum.yp_buf_len = datalen; upargs.datum.yp_buf_val = data; - if ((rval = clnt_call(clnt, YPU_STORE, xdr_ypupdate_args, - &upargs, xdr_u_int, &res, timeout)) != RPC_SUCCESS) { + if ((rval = clnt_call(clnt, YPU_STORE, + (xdrproc_t)xdr_ypupdate_args, &upargs, + (xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) { if (rval == RPC_AUTHERROR) res = YPERR_ACCESS; else -- cgit v1.2.3