svn commit: r272044 - head/sbin/sysctl
Xin LI
delphij at FreeBSD.org
Tue Sep 23 22:15:01 UTC 2014
Author: delphij
Date: Tue Sep 23 22:15:00 2014
New Revision: 272044
URL: http://svnweb.freebsd.org/changeset/base/272044
Log:
Constify a parameter of name2oid. No functional change.
MFC after: 2 months
Modified:
head/sbin/sysctl/sysctl.c
Modified: head/sbin/sysctl/sysctl.c
==============================================================================
--- head/sbin/sysctl/sysctl.c Tue Sep 23 22:07:08 2014 (r272043)
+++ head/sbin/sysctl/sysctl.c Tue Sep 23 22:15:00 2014 (r272044)
@@ -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;
More information about the svn-src-all
mailing list