summaryrefslogtreecommitdiffstats
path: root/bin/sh/var.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2009-12-24 18:41:14 +0000
committerjilles <jilles@FreeBSD.org>2009-12-24 18:41:14 +0000
commit8e458de8523a07bb3be5f06ed227236cb12be7f4 (patch)
tree3810323287749c3a09fadeeed64429a5bf2fbb4d /bin/sh/var.h
parentff49e8168bd001a89cc6ca577b7b33399eb2c409 (diff)
downloadFreeBSD-src-8e458de8523a07bb3be5f06ed227236cb12be7f4.zip
FreeBSD-src-8e458de8523a07bb3be5f06ed227236cb12be7f4.tar.gz
sh: Constify various strings.
Most of this is adding const keywords, but setvar() in var.c had to be changed somewhat more.
Diffstat (limited to 'bin/sh/var.h')
-rw-r--r--bin/sh/var.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/sh/var.h b/bin/sh/var.h
index c1f994b..4dafa2c 100644
--- a/bin/sh/var.h
+++ b/bin/sh/var.h
@@ -101,12 +101,12 @@ extern struct var vhistsize;
#define mpathset() ((vmpath.flags & VUNSET) == 0)
void initvar(void);
-void setvar(char *, char *, int);
+void setvar(const char *, const char *, int);
void setvareq(char *, int);
struct strlist;
void listsetvar(struct strlist *);
-char *lookupvar(char *);
-char *bltinlookup(char *, int);
+char *lookupvar(const char *);
+char *bltinlookup(const char *, int);
char **environment(void);
void shprocvar(void);
int showvarscmd(int, char **);
@@ -116,5 +116,5 @@ void mklocal(char *);
void poplocalvars(void);
int setvarcmd(int, char **);
int unsetcmd(int, char **);
-int unsetvar(char *);
-int setvarsafe(char *, char *, int);
+int unsetvar(const char *);
+int setvarsafe(const char *, const char *, int);
OpenPOWER on IntegriCloud