From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 24 Oct 2011 11:25:32 +0200 Subject: [U-Boot] [PATCH] Fix compile issue in arch/arm/lib/board.c In-Reply-To: <1319447521-6020-1-git-send-email-marek.vasut@gmail.com> References: <1319447521-6020-1-git-send-email-marek.vasut@gmail.com> Message-ID: <4EA52F0C.3090609@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Marek, Marek Vasut wrote: > The commit dc8bbea0170eb2aca428ea221c91fc2e5e11f199 breaks the build of U-Boot > if CONFIG_CMD_NET is enabled. > > arm: Use getenv_ulong() in place of getenv(), strtoul > > This changes the board code to use the new getenv_ulong() function. > > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Wolfgang Denk > Cc: Albert ARIBAUD > --- > arch/arm/lib/board.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c > index c764844..558e973 100644 > --- a/arch/arm/lib/board.c > +++ b/arch/arm/lib/board.c > @@ -566,7 +566,7 @@ void board_init_r(gd_t *id, ulong dest_addr) > /* Initialize from environment */ > load_addr = getenv_ulong("loadaddr", 16, load_addr); > #if defined(CONFIG_CMD_NET) > - s = getenv("bootfile"); > + char *s = getenv("bootfile"); Did you compiled this? I think, this should generate a compiler warning. > if (s != NULL) > copy_filename(BootFile, s, sizeof(BootFile)); > #endif bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany