diff options
author | mdf <mdf@FreeBSD.org> | 2011-01-18 21:14:13 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-01-18 21:14:13 +0000 |
commit | 0086ff603fc174491c4507f87d93ec6d8f0a2ae9 (patch) | |
tree | 9d3234254b82aa1d1a442c6236212e8c58ada89e /sys/net80211/ieee80211_freebsd.c | |
parent | 2c7d17da62fa5598b581b47f5879b24e2c41a9db (diff) | |
download | FreeBSD-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/net80211/ieee80211_freebsd.c')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_freebsd.c b/sys/net80211/ieee80211_freebsd.c index 9e8518c..523ae1a 100644 --- a/sys/net80211/ieee80211_freebsd.c +++ b/sys/net80211/ieee80211_freebsd.c @@ -233,7 +233,7 @@ ieee80211_sysctl_vattach(struct ieee80211vap *vap) oid = SYSCTL_ADD_NODE(ctx, &SYSCTL_NODE_CHILDREN(_net, wlan), OID_AUTO, num, CTLFLAG_RD, NULL, ""); SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(oid), OID_AUTO, - "%parent", CTLFLAG_RD, vap->iv_ic, 0, + "%parent", CTLTYPE_STRING | CTLFLAG_RD, vap->iv_ic, 0, ieee80211_sysctl_parent, "A", "parent device"); SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(oid), OID_AUTO, "driver_caps", CTLFLAG_RW, &vap->iv_caps, 0, |