aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2011-01-18 21:14:13 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2011-01-18 21:14:13 +0000
commit79c3d51b8645ab8a59ca8fc9738948d8a4a07af7 (patch)
tree9d3234254b82aa1d1a442c6236212e8c58ada89e /sys/netinet/udp_usrreq.c
parent8bd9ecb5690b4f4f9b007942a567ab6fdc0fea29 (diff)
downloadsrc-79c3d51b8645ab8a59ca8fc9738948d8a4a07af7.tar.gz
src-79c3d51b8645ab8a59ca8fc9738948d8a4a07af7.zip
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.
Notes
Notes: svn path=/head/; revision=217554
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 adb11c4ea804..3bfe788a2887 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