summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2017-05-25 12:45:35 -0400
committerSteve Dickson <steved@redhat.com>2017-05-25 12:47:39 -0400
commitc0e38c9fd1b2c6785af90c86b26a07724c2488e8 (patch)
tree0b6387d44d9bf9ae0f7950caa1a9dc82c1d3135d
parentc49a7ea639eb700823e174fd605bbbe183e229aa (diff)
downloadrpcbind-c0e38c9fd1b2c6785af90c86b26a07724c2488e8.tar.gz
rpcbind: fix building without --enable-debug
All if (debugging) stanzas and their accompanying xlog()s and aborts should be within #ifdef RPCBIND_DEBUG. Fixes a compilation failure due to non-inclusion of <syslog.h> in the non-debugging case. Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--src/pmap_svc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pmap_svc.c b/src/pmap_svc.c
index 26c31d0..a53dd5f 100644
--- a/src/pmap_svc.c
+++ b/src/pmap_svc.c
@@ -263,12 +263,14 @@ done_change:
rpcbs_unset(RPCBVERS_2_STAT, ans);
done:
if (!svc_freeargs(xprt, (xdrproc_t) xdr_pmap, (char *)&reg)) {
+#ifdef RPCBIND_DEBUG
if (debugging) {
(void) xlog(LOG_DEBUG, "unable to free arguments\n");
if (doabort) {
rpcbind_abort();
}
}
+#endif
}
return (rc);
}
@@ -347,12 +349,14 @@ pmapproc_getport(struct svc_req *rqstp /*__unused*/, SVCXPRT *xprt)
done:
if (!svc_freeargs(xprt, (xdrproc_t) xdr_pmap, (char *)&reg)) {
+#ifdef RPCBIND_DEBUG
if (debugging) {
(void) xlog(LOG_DEBUG, "unable to free arguments\n");
if (doabort) {
rpcbind_abort();
}
}
+#endif
}
return (rc);
}
@@ -385,12 +389,14 @@ pmapproc_dump(struct svc_req *rqstp /*__unused*/, SVCXPRT *xprt)
done:
if (!svc_freeargs(xprt, (xdrproc_t) xdr_void, (char *)NULL)) {
+#ifdef RPCBIND_DEBUG
if (debugging) {
(void) xlog(LOG_DEBUG, "unable to free arguments\n");
if (doabort) {
rpcbind_abort();
}
}
+#endif
}
return (rc);
}