From: Simon Glass Date: Fri, 16 Dec 2011 20:24:48 -0800 Subject: [U-Boot] [PATCH] net: Fix arguments in tftpput command Message-ID: <1324095888-22757-1-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The switch to strict_strtoul() was not done correctly - this fixes the compile error when CONFIG_CMD_TFTPPUT is active. Signed-off-by: Simon Glass --- common/cmd_net.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_net.c b/common/cmd_net.c index f89a24b..be7cc01 100644 --- a/common/cmd_net.c +++ b/common/cmd_net.c @@ -221,8 +221,8 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc, #ifdef CONFIG_CMD_TFTPPUT case 4: - save_addr = strict_strtoul(argv[1], NULL, 16); - save_size = strict_strtoul(argv[2], NULL, 16); + strict_strtoul(argv[1], 16, &save_addr); + strict_strtoul(argv[2], 16, &save_size); copy_filename(BootFile, argv[3], sizeof(BootFile)); break; #endif -- 1.7.3.1