summaryrefslogtreecommitdiffstats
path: root/lib/librpcsvc/yp_update.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 03:43:35 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 03:43:35 +0000
commiteaeee19e67cfe571826764870b55f0b4c8d52c1d (patch)
treed7593a72a6833981ddafbef785f8f22429b4db7e /lib/librpcsvc/yp_update.c
parent7c422b97bdc8f243bc66ee0c3902f232a7bd9403 (diff)
downloadFreeBSD-src-eaeee19e67cfe571826764870b55f0b4c8d52c1d.zip
FreeBSD-src-eaeee19e67cfe571826764870b55f0b4c8d52c1d.tar.gz
clnt_call takes args of type xdrproc_t.
Diffstat (limited to 'lib/librpcsvc/yp_update.c')
-rw-r--r--lib/librpcsvc/yp_update.c20
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
OpenPOWER on IntegriCloud