diff options
Diffstat (limited to 'lib/librpcsvc/yp_update.c')
-rw-r--r-- | lib/librpcsvc/yp_update.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/librpcsvc/yp_update.c b/lib/librpcsvc/yp_update.c index 5f1c7db..1d2848d 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 |