From: Zachary T Welch Date: Fri, 23 Oct 2009 09:17:17 +0000 (-0700) Subject: Improve lpc288x.c command argument parsing. X-Git-Tag: v0.4.0-rc1~917 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=0004691e9104c9a59336fbe6e230597d48e8cb57;hp=7f6ad49d12e3d166c730d27306d887bb3ed48a1b Improve lpc288x.c command argument parsing. --- diff --git a/src/flash/lpc288x.c b/src/flash/lpc288x.c index 513e2fcf35..61aa3a008e 100644 --- a/src/flash/lpc288x.c +++ b/src/flash/lpc288x.c @@ -209,7 +209,7 @@ static int lpc288x_flash_bank_command(struct command_context_s *cmd_ctx, char *c /* part wasn't probed for info yet */ lpc288x_info->cidr = 0; - lpc288x_info->cclk = strtoul(args[6], NULL, 0); + COMMAND_PARSE_NUMBER(u32, args[6], lpc288x_info->cclk); return ERROR_OK; }