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/1d3a5ef4d666
branches: trunk
changeset: 355840:1d3a5ef4d666
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Thu Aug 17 00:08:10 2017 +0000
description:
Fix compile warnings.
(Restore changes clobbered by merge of FreeBSD changes. Hi christos!)
diffstat:
usr.sbin/rpcbind/warmstart.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r eb93b5e80a8f -r 1d3a5ef4d666 usr.sbin/rpcbind/warmstart.c
--- a/usr.sbin/rpcbind/warmstart.c Thu Aug 17 00:08:03 2017 +0000
+++ b/usr.sbin/rpcbind/warmstart.c Thu Aug 17 00:08:10 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: warmstart.c,v 1.7 2017/08/16 23:38:16 ginsbach Exp $ */
+/* $NetBSD: warmstart.c,v 1.8 2017/08/17 00:08:10 ginsbach Exp $ */
/* $FreeBSD: head/usr.sbin/rpcbind/warmstart.c 258564 2013-11-25 16:44:02Z hrs $*/
/*-
@@ -136,9 +136,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
}
@@ -152,11 +152,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