diff options
-rw-r--r-- | applets/applets.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/applets/applets.c b/applets/applets.c index 168501811..e214f85ab 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -80,7 +80,6 @@ static struct BB_suid_config *suid_config; | |||
80 | 80 | ||
81 | extern void show_usage(void) | 81 | extern void show_usage(void) |
82 | { | 82 | { |
83 | const char *format_string; | ||
84 | const char *usage_string = usage_messages; | 83 | const char *usage_string = usage_messages; |
85 | int i; | 84 | int i; |
86 | 85 | ||
@@ -89,11 +88,12 @@ extern void show_usage(void) | |||
89 | --i; | 88 | --i; |
90 | } | 89 | } |
91 | } | 90 | } |
92 | format_string = "%s\n\nUsage: %s %s\n\n"; | 91 | |
93 | if(*usage_string == '\b') | 92 | if(*usage_string == '\b') { |
94 | format_string = "%s\n\nNo help available.\n\n"; | 93 | fprintf(stderr, "%s\n\nNo help available.\n\n", full_version); |
95 | fprintf(stderr, format_string, | 94 | } else { |
96 | full_version, applet_using->name, usage_string); | 95 | fprintf(stderr, "%s\n\nUsage: %s %s\n\n", full_version, applet_using->name, usage_string); |
96 | } | ||
97 | exit(EXIT_FAILURE); | 97 | exit(EXIT_FAILURE); |
98 | } | 98 | } |
99 | 99 | ||