mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
Fix warning in env_nand.c if compiled for DaVinci Schmoogie
Fix warnings nv_nand.c: In function 'saveenv': env_nand.c:200: warning: passing argument 3 of 'nand_write' from incompatible pointer type env_nand.c: In function 'env_relocate_spec': env_nand.c:275: warning: passing argument 3 of 'nand_read' from incompatible pointer type if compiled for davinci_schmoogie_config. Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Ack by: Sergey Kubushyn <ksi@koi8.net>
This commit is contained in:
parent
33a4a70d48
commit
378e7ec95d
1 changed files with 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ uchar env_get_char_spec (int index)
|
||||||
int env_init(void)
|
int env_init(void)
|
||||||
{
|
{
|
||||||
#if defined(ENV_IS_EMBEDDED)
|
#if defined(ENV_IS_EMBEDDED)
|
||||||
ulong total;
|
size_t total;
|
||||||
int crc1_ok = 0, crc2_ok = 0;
|
int crc1_ok = 0, crc2_ok = 0;
|
||||||
env_t *tmp_env1, *tmp_env2;
|
env_t *tmp_env1, *tmp_env2;
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ int saveenv(void)
|
||||||
#else /* ! CFG_ENV_OFFSET_REDUND */
|
#else /* ! CFG_ENV_OFFSET_REDUND */
|
||||||
int saveenv(void)
|
int saveenv(void)
|
||||||
{
|
{
|
||||||
ulong total;
|
size_t total;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
puts ("Erasing Nand...");
|
puts ("Erasing Nand...");
|
||||||
|
@ -268,7 +268,7 @@ void env_relocate_spec (void)
|
||||||
void env_relocate_spec (void)
|
void env_relocate_spec (void)
|
||||||
{
|
{
|
||||||
#if !defined(ENV_IS_EMBEDDED)
|
#if !defined(ENV_IS_EMBEDDED)
|
||||||
ulong total;
|
size_t total;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
total = CFG_ENV_SIZE;
|
total = CFG_ENV_SIZE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue