svn commit: r251156 - stable/9/bin/kenv

Xin LI delphij at FreeBSD.org
Thu May 30 20:45:58 UTC 2013


Author: delphij
Date: Thu May 30 20:45:57 2013
New Revision: 251156
URL: http://svnweb.freebsd.org/changeset/base/251156

Log:
  MFC r250666:
  
  Constify parameters, no functional or binary change.

Modified:
  stable/9/bin/kenv/kenv.c
Directory Properties:
  stable/9/bin/kenv/   (props changed)

Modified: stable/9/bin/kenv/kenv.c
==============================================================================
--- stable/9/bin/kenv/kenv.c	Thu May 30 20:42:51 2013	(r251155)
+++ stable/9/bin/kenv/kenv.c	Thu May 30 20:45:57 2013	(r251156)
@@ -37,9 +37,9 @@ __FBSDID("$FreeBSD$");
 
 static void	usage(void);
 static int	kdumpenv(void);
-static int	kgetenv(char *);
-static int	ksetenv(char *, char *);
-static int	kunsetenv(char *);
+static int	kgetenv(const char *);
+static int	ksetenv(const char *, char *);
+static int	kunsetenv(const char *);
 
 static int hflag = 0;
 static int Nflag = 0;
@@ -170,7 +170,7 @@ kdumpenv(void)
 }
 
 static int
-kgetenv(char *env)
+kgetenv(const char *env)
 {
 	char buf[1024];
 	int ret;
@@ -186,7 +186,7 @@ kgetenv(char *env)
 }
 
 static int
-ksetenv(char *env, char *val)
+ksetenv(const char *env, char *val)
 {
 	int ret;
 
@@ -197,7 +197,7 @@ ksetenv(char *env, char *val)
 }
 
 static int
-kunsetenv(char *env)
+kunsetenv(const char *env)
 {
 	int ret;
 	


More information about the svn-src-stable-9 mailing list