From a21f29df61a761f6438742ccfd43413f251be25c Mon Sep 17 00:00:00 2001 From: mdf Date: Tue, 18 Jan 2011 21:14:23 +0000 Subject: Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need to rely on the format string. --- sys/dev/usb/net/usb_ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/usb/net/usb_ethernet.c') diff --git a/sys/dev/usb/net/usb_ethernet.c b/sys/dev/usb/net/usb_ethernet.c index 7ca7894..7fbd9ef 100644 --- a/sys/dev/usb/net/usb_ethernet.c +++ b/sys/dev/usb/net/usb_ethernet.c @@ -240,7 +240,7 @@ ue_attach_post_task(struct usb_proc_msg *_task) OID_AUTO, num, CTLFLAG_RD, NULL, ""); SYSCTL_ADD_PROC(&ue->ue_sysctl_ctx, SYSCTL_CHILDREN(ue->ue_sysctl_oid), OID_AUTO, - "%parent", CTLFLAG_RD, ue, 0, + "%parent", CTLTYPE_STRING | CTLFLAG_RD, ue, 0, ue_sysctl_parent, "A", "parent device"); UE_LOCK(ue); -- cgit v1.1