From: Horst Kronstorfer Date: Sat, 24 Dec 2011 00:41:58 +0000 (+0000) Subject: tools/mkenvimage.c: Fix a merge issue X-Git-Tag: v2012.04-rc1~330 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72ebafbe2bd5044eecbfdaa132390a1421db25be;p=u-boot tools/mkenvimage.c: Fix a merge issue With bfcc40bb09b05c90cc3b1496abb270eb8aa72134 'optopt' was reverted. Signed-off-by: Horst Kronstorfer --- diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index c5ed373b99..8ee2bd00e5 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -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; }