]> git.sur5r.net Git - u-boot/commitdiff
tools/mkenvimage.c: Fix a merge issue
authorHorst Kronstorfer <hkronsto@frequentis.com>
Sat, 24 Dec 2011 00:41:58 +0000 (00:41 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 5 Jan 2012 15:36:44 +0000 (16:36 +0100)
With bfcc40bb09b05c90cc3b1496abb270eb8aa72134 'optopt' was reverted.

Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
tools/mkenvimage.c

index c5ed373b99217cd09b7c84578abae27e4ee09661..8ee2bd00e5c70c6086b48a6d1ae82bfc67369989 100644 (file)
@@ -122,11 +122,11 @@ int main(int argc, char **argv)
                        return EXIT_SUCCESS;
                case ':':
                        fprintf(stderr, "Missing argument for option -%c\n",
-                               option);
+                               optopt);
                        usage(argv[0]);
                        return EXIT_FAILURE;
                default:
-                       fprintf(stderr, "Wrong option -%c\n", option);
+                       fprintf(stderr, "Wrong option -%c\n", optopt);
                        usage(prg);
                        return EXIT_FAILURE;
                }