[U-Boot] [PATCH 2/2] tools/env: fail on invalid options
Daniel Hobi
daniel.hobi at schmid-telecom.ch
Wed Sep 15 19:46:27 CEST 2010
Signed-off-by: Daniel Hobi <daniel.hobi at schmid-telecom.ch>
---
tools/env/fw_env_main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c
index baf3a4d..381ed14 100644
--- a/tools/env/fw_env_main.c
+++ b/tools/env/fw_env_main.c
@@ -105,6 +105,8 @@ main(int argc, char *argv[])
case 'h':
usage();
return EXIT_SUCCESS;
+ default: /* '?' */
+ return EXIT_FAILURE;
}
}
--
1.7.2.3
More information about the U-Boot
mailing list