From 994bc671cf8fd3f6d41bb680da738f814f4a9f38 Mon Sep 17 00:00:00 2001 From: Igor Grinberg Date: Thu, 17 Nov 2011 06:07:23 +0000 Subject: 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 --- common/env_flash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common/env_flash.c') diff --git a/common/env_flash.c b/common/env_flash.c index d9f8fcb1ef..e770ee6368 100644 --- a/common/env_flash.c +++ b/common/env_flash.c @@ -49,9 +49,7 @@ DECLARE_GLOBAL_DATA_PTR; char * env_name_spec = "Flash"; #ifdef ENV_IS_EMBEDDED - -extern uchar environment[]; -env_t *env_ptr = (env_t *)(&environment[0]); +env_t *env_ptr = &environment; static env_t *flash_addr = (env_t *)CONFIG_ENV_ADDR; -- cgit v1.2.3