]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mkimage: Fix argument parsing with signature comment
authorKarl Beldan <kbeldan@baylibre.com>
Tue, 2 Aug 2016 18:57:14 +0000 (18:57 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 6 Aug 2016 00:55:23 +0000 (20:55 -0400)
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>
tools/mkimage.c

index d9939583f5533cd044b32e98b66aa34468dd9157..3c594a0f3b92f1cf73b282c85b36674838c65fa0 100644 (file)
@@ -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);