diff options
author | delphij <delphij@FreeBSD.org> | 2014-09-23 22:15:00 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-09-23 22:15:00 +0000 |
commit | 9f680150f9e7a4a6596090f1541f0461249dde2a (patch) | |
tree | be2da6cf025683a0058052ba06a2e40eac7574bb /sbin/sysctl | |
parent | 207b1a98a8f5b0025c8574e906732e4f03d52397 (diff) | |
download | FreeBSD-src-9f680150f9e7a4a6596090f1541f0461249dde2a.zip FreeBSD-src-9f680150f9e7a4a6596090f1541f0461249dde2a.tar.gz |
Constify a parameter of name2oid. No functional change.
MFC after: 2 months
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 20d5952..f9207f1 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -78,7 +78,7 @@ static int parsefile(const char *); static int parse(const char *, int); static int show_var(int *, int); static int sysctl_all(int *oid, int len); -static int name2oid(char *, int *); +static int name2oid(const char *, int *); static int set_IK(const char *, int *); @@ -693,7 +693,7 @@ set_IK(const char *str, int *val) */ static int -name2oid(char *name, int *oidp) +name2oid(const char *name, int *oidp) { int oid[2]; int i; |