Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rpcbind Fix compile warnings.
details: https://anonhg.NetBSD.org/src/rev/4a8b6a5f6844
branches: trunk
changeset: 355612:4a8b6a5f6844
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Sun Aug 06 01:55:21 2017 +0000
description:
Fix compile warnings.
diffstat:
usr.sbin/rpcbind/warmstart.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 065914858b46 -r 4a8b6a5f6844 usr.sbin/rpcbind/warmstart.c
--- a/usr.sbin/rpcbind/warmstart.c Sun Aug 06 01:02:44 2017 +0000
+++ b/usr.sbin/rpcbind/warmstart.c Sun Aug 06 01:55:21 2017 +0000
@@ -134,9 +134,9 @@
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 @@
#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);
Home |
Main Index |
Thread Index |
Old Index