Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109504236
D36765.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
551 B
Referenced Files
None
Subscribers
None
D36765.diff
View Options
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1326,17 +1326,11 @@
{
struct sysctl_oid *oidp;
struct sysctl_oid_list *lsp = &sysctl__children;
- char *p;
SYSCTL_ASSERT_LOCKED();
for (*len = 0; *len < CTL_MAXNAME;) {
- p = strsep(&name, ".");
-
- SYSCTL_FOREACH(oidp, lsp) {
- if (strcmp(p, oidp->oid_name) == 0)
- break;
- }
+ oidp = sysctl_find_oidname(strsep(&name, "."), lsp);
if (oidp == NULL)
return (ENOENT);
*oid++ = oidp->oid_number;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 10:46 PM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16502532
Default Alt Text
D36765.diff (551 B)
Attached To
Mode
D36765: name2oid: use find_oidname
Attached
Detach File
Event Timeline
Log In to Comment