Use SYSCTL_OUT_STR() to return strings.

PR:		195668
This commit is contained in:
Ian Lepore 2015-03-14 21:40:33 +00:00
parent d711ee2c29
commit 8ddeeebf4b

View File

@ -155,7 +155,7 @@ ue_sysctl_parent(SYSCTL_HANDLER_ARGS)
const char *name;
name = device_get_nameunit(ue->ue_dev);
return SYSCTL_OUT(req, name, strlen(name));
return SYSCTL_OUT_STR(req, name);
}
int