[PATCH 1/6] kexec: Fix the -? option

Geoff Levand
2013-10-02T20:49:46Z

Add '?' to the short option string. Fixes runtime errors like
these:

kexec: invalid option -- '?'

Signed-off-by: Geoff Levand <geoff@infradead.org> for Huawei, Linaro
---
kexec/kexec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/kexec.h b/kexec/kexec.h
index 715b568..2904e03 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -230,7 +230,7 @@ extern int file_types;
{ "reuseinitrd", 0, 0, OPT_REUSE_INITRD }, \
{ "debug", 0, 0, OPT_DEBUG }, \

-#define KEXEC_OPT_STR "hvdfxluet:p"
+#define KEXEC_OPT_STR "h?vdfxluet:p"

extern void die(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));