summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Beldan <kbeldan@baylibre.com>2016-08-02 18:57:14 (GMT)
committerTom Rini <trini@konsulko.com>2016-08-06 00:55:23 (GMT)
commit1b92aed253490736d1aabc88fcec21edc8aa55d0 (patch)
treef3726df682a1eabe9e1b97feecd4edf974c4db69
parentf6d34651d8a21514abbfa32f44a0ec2014ef002b (diff)
downloadu-boot-fsl-qoriq-1b92aed253490736d1aabc88fcec21edc8aa55d0.tar.xz
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>
-rw-r--r--tools/mkimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index d993958..3c594a0 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);