aboutsummaryrefslogtreecommitdiff
path: root/bin/kenv
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-05-15 18:38:28 +0000
committerXin LI <delphij@FreeBSD.org>2013-05-15 18:38:28 +0000
commit41f05c82819632eee2c6206a9adb9bb801d71d85 (patch)
treeee5d839269a8cfbd41a4b38bf14068779d0de602 /bin/kenv
parent22a3aee637a6d1f7b6a5538dd2d3216b9fa98d45 (diff)
downloadsrc-41f05c82819632eee2c6206a9adb9bb801d71d85.tar.gz
src-41f05c82819632eee2c6206a9adb9bb801d71d85.zip
Constify parameters, no functional or binary change.
Verified with: sha256(1) MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=250666
Diffstat (limited to 'bin/kenv')
-rw-r--r--bin/kenv/kenv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/kenv/kenv.c b/bin/kenv/kenv.c
index 5ba9a5e413f6..dad8a91fb6d9 100644
--- a/bin/kenv/kenv.c
+++ b/bin/kenv/kenv.c
@@ -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;