summaryrefslogtreecommitdiff
path: root/env/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/remote.c')
-rw-r--r--env/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/env/remote.c b/env/remote.c
index 50d77b8dfe0..e3f0608b16b 100644
--- a/env/remote.c
+++ b/env/remote.c
@@ -12,9 +12,9 @@
#include <u-boot/crc.h>
#ifdef ENV_IS_EMBEDDED
-env_t *env_ptr = &environment;
+static env_t *env_ptr = &environment;
#else /* ! ENV_IS_EMBEDDED */
-env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
+static env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
#endif /* ENV_IS_EMBEDDED */
DECLARE_GLOBAL_DATA_PTR;