Module Name: src
Committed By: ginsbach
Date: Sun Aug 6 01:55:22 UTC 2017
Modified Files:
src/usr.sbin/rpcbind: warmstart.c
Log Message:
Fix compile warnings.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/rpcbind/warmstart.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rpcbind/warmstart.c
diff -u src/usr.sbin/rpcbind/warmstart.c:1.4 src/usr.sbin/rpcbind/warmstart.c:1.5
--- src/usr.sbin/rpcbind/warmstart.c:1.4 Sun Aug 6 01:02:44 2017
+++ src/usr.sbin/rpcbind/warmstart.c Sun Aug 6 01:55:21 2017
@@ -134,9 +134,9 @@ error: warnx("Will start from scratch");
void
write_warmstart(void)
{
- (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
}
@@ -150,11 +150,11 @@ read_warmstart(void)
#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);