summaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorKarl Beldan <kbeldan@baylibre.com>2016-08-02 18:57:14 +0000
committerTom Rini <trini@konsulko.com>2016-08-05 20:55:23 -0400
commit1b92aed253490736d1aabc88fcec21edc8aa55d0 (patch)
treef3726df682a1eabe9e1b97feecd4edf974c4db69 /tools/mkimage.c
parentf6d34651d8a21514abbfa32f44a0ec2014ef002b (diff)
downloadu-boot-1b92aed253490736d1aabc88fcec21edc8aa55d0.tar.gz
u-boot-1b92aed253490736d1aabc88fcec21edc8aa55d0.tar.bz2
u-boot-1b92aed253490736d1aabc88fcec21edc8aa55d0.zip
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 <kbeldan@baylibre.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c2
1 files changed, 1 insertions, 1 deletions
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);