summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-01-18 21:14:13 +0000
committermdf <mdf@FreeBSD.org>2011-01-18 21:14:13 +0000
commit0086ff603fc174491c4507f87d93ec6d8f0a2ae9 (patch)
tree9d3234254b82aa1d1a442c6236212e8c58ada89e /sys/netinet/udp_usrreq.c
parent2c7d17da62fa5598b581b47f5879b24e2c41a9db (diff)
downloadFreeBSD-src-0086ff603fc174491c4507f87d93ec6d8f0a2ae9.zip
FreeBSD-src-0086ff603fc174491c4507f87d93ec6d8f0a2ae9.tar.gz
Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need
to rely on the format string. For SYSCTL_PROC instances that I noticed a discrepancy between the CTLTYPE and the format specifier, fix the CTLTYPE.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index adb11c4..3bfe788 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -800,7 +800,8 @@ udp_pcblist(SYSCTL_HANDLER_ARGS)
return (error);
}
-SYSCTL_PROC(_net_inet_udp, UDPCTL_PCBLIST, pcblist, CTLFLAG_RD, 0, 0,
+SYSCTL_PROC(_net_inet_udp, UDPCTL_PCBLIST, pcblist,
+ CTLTYPE_OPAQUE | CTLFLAG_RD, NULL, 0,
udp_pcblist, "S,xinpcb", "List of active UDP sockets");
static int
OpenPOWER on IntegriCloud