Use SYSCTL_OUT_STR() to return strings.

PR:		195668
This commit is contained in:
Ian Lepore 2015-03-14 21:41:00 +00:00
parent c38c26f8da
commit 6ef6968de5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280010

View File

@ -209,7 +209,7 @@ ieee80211_sysctl_parent(SYSCTL_HANDLER_ARGS)
struct ieee80211com *ic = arg1;
const char *name = ic->ic_ifp->if_xname;
return SYSCTL_OUT(req, name, strlen(name));
return SYSCTL_OUT_STR(req, name);
}
static int