X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fenvironment.h;h=6394a96c357d45c7112d75cc2edbbbd51e164a09;hb=b5508344581d785b495df6e2b9cb94a13360afb5;hp=53d92df1f29475174ece0b5d2728531f8c4f26b5;hpb=efb063390d2d1e712c2c8110911616244d562c4b;p=u-boot diff --git a/include/environment.h b/include/environment.h index 53d92df1f2..6394a96c35 100644 --- a/include/environment.h +++ b/include/environment.h @@ -124,7 +124,9 @@ extern unsigned long nand_env_oob_offset; /* The build system likes to know if the env is embedded */ #ifdef DO_DEPS_ONLY # ifdef ENV_IS_EMBEDDED -# define CONFIG_ENV_IS_EMBEDDED +# ifndef CONFIG_ENV_IS_EMBEDDED +# define CONFIG_ENV_IS_EMBEDDED +# endif # endif #endif @@ -160,7 +162,7 @@ extern struct hsearch_data env_htab; unsigned char env_get_char (int); /* Function that returns a pointer to a value from the environment */ -unsigned char *env_get_addr(int); +const unsigned char *env_get_addr(int); unsigned char env_get_char_memory (int index); /* Function that updates CRC of the enironment */