summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorst Kronstorfer <hkronsto@frequentis.com>2011-12-24 00:41:58 +0000
committerWolfgang Denk <wd@denx.de>2012-01-05 16:36:44 +0100
commit72ebafbe2bd5044eecbfdaa132390a1421db25be (patch)
tree9a5e40782cdf1cc63f6cd65c6024076aa3476a49
parent6f403bad80224b9cfc5c97cb2ac1b608d1777d0d (diff)
downloadu-boot-imx-72ebafbe2bd5044eecbfdaa132390a1421db25be.zip
u-boot-imx-72ebafbe2bd5044eecbfdaa132390a1421db25be.tar.gz
u-boot-imx-72ebafbe2bd5044eecbfdaa132390a1421db25be.tar.bz2
tools/mkenvimage.c: Fix a merge issue
With bfcc40bb09b05c90cc3b1496abb270eb8aa72134 'optopt' was reverted. Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
-rw-r--r--tools/mkenvimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c
index c5ed373..8ee2bd0 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;
}