HomeFreeBSD

kern_sysctl: Make name2oid() non-destructive to the name

Description

kern_sysctl: Make name2oid() non-destructive to the name

It is not the first time I see it panicking while trying to modify
const memory. Lets make it safer and easier to use. While there,
mark few functions using it also const.

MFC after: 10 days

(cherry picked from commit f80babf906b7be51b2a031ef26525893c7bf4e31)

Details

Provenance
mavAuthored on Sep 23 2023, 4:13 PM
zleiCommitted on Thu, Jan 23, 10:56 AM
Parents
rGf10a06556f56: rtld-elf/{amd64,i386}/reloc.c: remove unneeded #ifdef dbg
Branches
Unknown
Tags
Unknown