diff options
author | alfred <alfred@FreeBSD.org> | 2002-10-07 01:16:00 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-10-07 01:16:00 +0000 |
commit | f5ccdec59aff8e1476fd6e99a8476c724009ada5 (patch) | |
tree | 1effac9d84dd9ed2f1eff049ce239f3276dc59e7 /usr.sbin/rpcbind | |
parent | a759393c669138e62d5f6aa8a6c805dea4634139 (diff) | |
download | FreeBSD-src-f5ccdec59aff8e1476fd6e99a8476c724009ada5.zip FreeBSD-src-f5ccdec59aff8e1476fd6e99a8476c724009ada5.tar.gz |
cast xdr_rpcblist_ptr to xdrproc_t to silence warnings.
Diffstat (limited to 'usr.sbin/rpcbind')
-rw-r--r-- | usr.sbin/rpcbind/warmstart.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpcbind/warmstart.c b/usr.sbin/rpcbind/warmstart.c index fea2789..fed9231 100644 --- a/usr.sbin/rpcbind/warmstart.c +++ b/usr.sbin/rpcbind/warmstart.c @@ -144,9 +144,9 @@ error: fprintf(stderr, "rpcbind: will start from scratch\n"); void write_warmstart() { - (void) write_struct(RPCBFILE, xdr_rpcblist_ptr, &list_rbl); + (void) write_struct(RPCBFILE, (xdrproc_t)xdr_rpcblist_ptr, &list_rbl); #ifdef PORTMAP - (void) write_struct(PMAPFILE, xdr_pmaplist_ptr, &list_pml); + (void) write_struct(PMAPFILE, (xdrproc_t)xdr_pmaplist_ptr, &list_pml); #endif } @@ -160,11 +160,11 @@ read_warmstart() #endif int ok1, ok2 = TRUE; - ok1 = read_struct(RPCBFILE, xdr_rpcblist_ptr, &tmp_rpcbl); + ok1 = read_struct(RPCBFILE, (xdrproc_t)xdr_rpcblist_ptr, &tmp_rpcbl); if (ok1 == FALSE) return; #ifdef PORTMAP - ok2 = read_struct(PMAPFILE, xdr_pmaplist_ptr, &tmp_pmapl); + ok2 = read_struct(PMAPFILE, (xdrproc_t)xdr_pmaplist_ptr, &tmp_pmapl); #endif if (ok2 == FALSE) { xdr_free((xdrproc_t) xdr_rpcblist_ptr, (char *)&tmp_rpcbl); |