aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorGravatar Glenn L McGrath <bug1@ihug.co.nz>2002-11-28 21:49:06 +0000
committerGravatar Glenn L McGrath <bug1@ihug.co.nz>2002-11-28 21:49:06 +0000
commit4d4ef19c76cdb93865347529e21d609ad055ecda (patch)
treed35d7bb6dee079ff210fcec3c87f92e4325f87d7 /applets
parent82d2cd4eadd8cb009eafe5fae184f502672f47ba (diff)
downloadbusybox-4d4ef19c76cdb93865347529e21d609ad055ecda.tar.gz
busybox-4d4ef19c76cdb93865347529e21d609ad055ecda.tar.bz2
I miscalculated on this one, change it back
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/applets/applets.c b/applets/applets.c
index e214f85ab..9f69da185 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -80,6 +80,7 @@ static struct BB_suid_config *suid_config;
extern void show_usage(void)
{
+ const char *format_string;
const char *usage_string = usage_messages;
int i;
@@ -89,11 +90,11 @@ extern void show_usage(void)
}
}
- if(*usage_string == '\b') {
- fprintf(stderr, "%s\n\nNo help available.\n\n", full_version);
- } else {
- fprintf(stderr, "%s\n\nUsage: %s %s\n\n", full_version, applet_using->name, usage_string);
- }
+ format_string = "%s\n\nUsage: %s %s\n\n";
+ if(*usage_string == '\b')
+ format_string = "%s\n\nNo help available.\n\n";
+ fprintf(stderr, format_string, full_version, applet_using->name, usage_string);
+
exit(EXIT_FAILURE);
}