From: Karl Beldan Date: Tue, 2 Aug 2016 18:57:14 +0000 (+0000) Subject: mkimage: Fix argument parsing with signature comment X-Git-Tag: v2016.09-rc2~100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b92aed253490736d1aabc88fcec21edc8aa55d0;p=u-boot mkimage: Fix argument parsing with signature comment Inform getopt that '-c' requires a parameter. Fixes: a02221f29deb ("mkimage: Convert to use getopt()") Signed-off-by: Karl Beldan Reviewed-by: Tom Rini --- diff --git a/tools/mkimage.c b/tools/mkimage.c index d9939583f5..3c594a0f3b 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -140,7 +140,7 @@ static void process_args(int argc, char **argv) int opt; while ((opt = getopt(argc, argv, - "a:A:b:cC:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) { + "a:A:b:c:C:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) { switch (opt) { case 'a': params.addr = strtoull(optarg, &ptr, 16);