1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

tools/mkenvimage.c: Fix a merge issue

With bfcc40bb09 'optopt' was reverted.

Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
This commit is contained in:
Horst Kronstorfer
2011-12-24 00:41:58 +00:00
committed by Wolfgang Denk
parent 6f403bad80
commit 72ebafbe2b

View 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;
}