Commit 72ebafbe2bd5044eecbfdaa132390a1421db25be

Authored by Horst Kronstorfer
Committed by Wolfgang Denk
1 parent 6f403bad80

tools/mkenvimage.c: Fix a merge issue

With bfcc40bb09b05c90cc3b1496abb270eb8aa72134 'optopt' was reverted.

Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -122,11 +122,11 @@
122 122 return EXIT_SUCCESS;
123 123 case ':':
124 124 fprintf(stderr, "Missing argument for option -%c\n",
125   - option);
  125 + optopt);
126 126 usage(argv[0]);
127 127 return EXIT_FAILURE;
128 128 default:
129   - fprintf(stderr, "Wrong option -%c\n", option);
  129 + fprintf(stderr, "Wrong option -%c\n", optopt);
130 130 usage(prg);
131 131 return EXIT_FAILURE;
132 132 }