From 2a21e331dbc364fa4e36a6b1c147bfe2fd61416f Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 6 Apr 2015 18:19:14 +0200 Subject: [PATCH] use skip_atoi instead of atoi atoi requires a stdlib. skip_atoi is much simpler --- u-boot/common/cmd_setmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u-boot/common/cmd_setmac.c b/u-boot/common/cmd_setmac.c index 0ace1a0e9d..2e7cae84d9 100644 --- a/u-boot/common/cmd_setmac.c +++ b/u-boot/common/cmd_setmac.c @@ -251,7 +251,7 @@ int do_setserial(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (argc != 2) return CMD_RET_FAILURE; - serialnumber = atoi(argv[1]); + serialnumber = skip_atoi(argv[1]); if (serialnumber <= 0) { printf("Invalid serialnumber. <= 0!\n"); return CMD_RET_FAILURE;