diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-11-12 17:33:10 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2010-11-12 17:33:10 +0100 |
commit | 6f8db3bda1c2644adfc25b83b73285df9a80585d (patch) | |
tree | 3ebdfb9d92e928e7baef0bbd7231fb4d16f74193 | |
parent | c9c4555f8d38053ed2da4b0f81fd86301a14d8cb (diff) |
Rename usage function
-rw-r--r-- | main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -42,7 +42,7 @@ bool verbose = false; -static void usage(const int status) +static void usage_and_exit(const int status) { fprintf(stdout, "Usage: %s [OPTION...] IMAGE\n" " -c CMDLINE, --cmdline=CMDLINE\n" @@ -146,11 +146,12 @@ int main(int argc, char *argv[]) case 'V': info("%s %s\n", PROGRAM_NAME, PROGRAM_VERSION); exit(EXIT_SUCCESS); + /* never reached */ case 'h': - usage(EXIT_SUCCESS); - break; + usage_and_exit(EXIT_SUCCESS); + /* never reached */ default: - usage(EXIT_FAILURE); + usage_and_exit(EXIT_FAILURE); } } |