Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2014 22:15:00 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272044 - head/sbin/sysctl
Message-ID:  <201409232215.s8NMF02p048799@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409232215.s8NMF02p048799>