diff options
author | mdf <mdf@FreeBSD.org> | 2011-01-18 21:14:23 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-01-18 21:14:23 +0000 |
commit | a21f29df61a761f6438742ccfd43413f251be25c (patch) | |
tree | bc41c7bf702ee54b19ebae02c39a4020483f3724 /sys/dev/usb/net/usb_ethernet.c | |
parent | ca68749f2ad8bc8992280cb0a9ad055f2958f9c8 (diff) | |
download | FreeBSD-src-a21f29df61a761f6438742ccfd43413f251be25c.zip FreeBSD-src-a21f29df61a761f6438742ccfd43413f251be25c.tar.gz |
Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need
to rely on the format string.
Diffstat (limited to 'sys/dev/usb/net/usb_ethernet.c')
-rw-r--r-- | sys/dev/usb/net/usb_ethernet.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |