diff options
author | Wolfgang Denk <wd@denx.de> | 2011-07-29 14:42:18 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-30 01:37:44 +0200 |
commit | 84b5e8022ef62b68df360392a55c4fc2f2e568d7 (patch) | |
tree | d594068eabcd2dd548585430ea36f9ababe7657d /include/common.h | |
parent | 7ca9296e1b5b165a2c4db49c44716764f1c7dc44 (diff) | |
download | u-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/common.h')
-rw-r--r-- | include/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h index 1572791..b994e70 100644 --- a/include/common.h +++ b/include/common.h @@ -262,13 +262,13 @@ void doc_probe(unsigned long physadr); int env_init (void); void env_relocate (void); int envmatch (uchar *, int); -char *getenv (char *); -int getenv_f (char *name, char *buf, unsigned len); +char *getenv (const char *); +int getenv_f (const char *name, char *buf, unsigned len); int saveenv (void); #ifdef CONFIG_PPC /* ARM version to be fixed! */ -int inline setenv (char *, char *); +int inline setenv (const char *, const char *); #else -int setenv (char *, char *); +int setenv (const char *, const char *); #endif /* CONFIG_PPC */ #ifdef CONFIG_ARM # include <asm/mach-types.h> |