summaryrefslogtreecommitdiff
path: root/include/exports.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-07-29 14:42:18 +0200
committerWolfgang Denk <wd@denx.de>2011-07-30 01:37:44 +0200
commit84b5e8022ef62b68df360392a55c4fc2f2e568d7 (patch)
treed594068eabcd2dd548585430ea36f9ababe7657d /include/exports.h
parent7ca9296e1b5b165a2c4db49c44716764f1c7dc44 (diff)
downloadu-boot-imx-84b5e8022ef62b68df360392a55c4fc2f2e568d7.zip
u-boot-imx-84b5e8022ef62b68df360392a55c4fc2f2e568d7.tar.gz
u-boot-imx-84b5e8022ef62b68df360392a55c4fc2f2e568d7.tar.bz2
Constify getenv(), setenv() and hash code functions
This is needed to get rid of build warnings like main.c:311: warning: passing argument 2 of 'setenv' discards qualifiers from pointer target type which result from commit 09c2e90 "unify version_string". Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/exports.h')
-rw-r--r--include/exports.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exports.h b/include/exports.h
index e14d727..9492566 100644
--- a/include/exports.h
+++ b/include/exports.h
@@ -21,8 +21,8 @@ unsigned long get_timer(unsigned long);
int vprintf(const char *, va_list);
unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
-char *getenv (char *name);
-int setenv (char *varname, char *varvalue);
+char *getenv (const char *name);
+int setenv (const char *varname, const char *varvalue);
long simple_strtol(const char *cp,char **endp,unsigned int base);
int strcmp(const char * cs,const char * ct);
int ustrtoul(const char *cp, char **endp, unsigned int base);