summaryrefslogtreecommitdiff
path: root/common/env_mmc.c
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-11-17 06:07:23 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:39:25 +0100
commit994bc671cf8fd3f6d41bb680da738f814f4a9f38 (patch)
tree27a33cdeef18689c4adc5d4f532df3197de9b5fe /common/env_mmc.c
parentd1459f0fab1ac145051a74094c96592c694f84af (diff)
env: move extern environment[] to environment.h
Extract all extern declarations for environment out of c files into the environment.h header. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'common/env_mmc.c')
-rw-r--r--common/env_mmc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/env_mmc.c b/common/env_mmc.c
index 78df808bbce..ef8186c2c7a 100644
--- a/common/env_mmc.c
+++ b/common/env_mmc.c
@@ -35,8 +35,7 @@
char *env_name_spec = "MMC";
#ifdef ENV_IS_EMBEDDED
-extern uchar environment[];
-env_t *env_ptr = (env_t *)(&environment[0]);
+env_t *env_ptr = &environment;
#else /* ! ENV_IS_EMBEDDED */
env_t *env_ptr = NULL;
#endif /* ENV_IS_EMBEDDED */