diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-01 16:54:30 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-01 16:54:30 +0100 |
| commit | ff65355b8a44d1d546443f69382459eb2176cb44 (patch) | |
| tree | 83034aa3d97d4fce197844b412ecd4bfdf52dc6d /libbb | |
| parent | 37bdd8f8cb19b674485be1dec6e8ac96d930c87f (diff) | |
| download | busybox-w32-ff65355b8a44d1d546443f69382459eb2176cb44.tar.gz busybox-w32-ff65355b8a44d1d546443f69382459eb2176cb44.tar.bz2 busybox-w32-ff65355b8a44d1d546443f69382459eb2176cb44.zip | |
single-applet build --help had extra \n, remove
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/appletlib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index cd09b620c..c15014a34 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
| @@ -123,16 +123,16 @@ void FAST_FUNC bb_show_usage(void) | |||
| 123 | { | 123 | { |
| 124 | if (ENABLE_SHOW_USAGE) { | 124 | if (ENABLE_SHOW_USAGE) { |
| 125 | #ifdef SINGLE_APPLET_STR | 125 | #ifdef SINGLE_APPLET_STR |
| 126 | /* Imagine that this applet is "true". Dont suck in printf! */ | 126 | /* Imagine that this applet is "true". Dont link in printf! */ |
| 127 | const char *usage_string = unpack_usage_messages(); | 127 | const char *usage_string = unpack_usage_messages(); |
| 128 | 128 | ||
| 129 | if (usage_string) { | 129 | if (usage_string) { |
| 130 | if (*usage_string == '\b') { | 130 | if (*usage_string == '\b') { |
| 131 | full_write2_str("No help available.\n\n"); | 131 | full_write2_str("No help available\n"); |
| 132 | } else { | 132 | } else { |
| 133 | full_write2_str("Usage: "SINGLE_APPLET_STR" "); | 133 | full_write2_str("Usage: "SINGLE_APPLET_STR" "); |
| 134 | full_write2_str(usage_string); | 134 | full_write2_str(usage_string); |
| 135 | full_write2_str("\n\n"); | 135 | full_write2_str("\n"); |
| 136 | } | 136 | } |
| 137 | if (ENABLE_FEATURE_CLEAN_UP) | 137 | if (ENABLE_FEATURE_CLEAN_UP) |
| 138 | dealloc_usage_messages((char*)usage_string); | 138 | dealloc_usage_messages((char*)usage_string); |
| @@ -149,9 +149,9 @@ void FAST_FUNC bb_show_usage(void) | |||
| 149 | ap--; | 149 | ap--; |
| 150 | } | 150 | } |
| 151 | full_write2_str(bb_banner); | 151 | full_write2_str(bb_banner); |
| 152 | full_write2_str(" multi-call binary.\n"); | 152 | full_write2_str(" multi-call binary.\n"); /* common string */ |
| 153 | if (*p == '\b') | 153 | if (*p == '\b') |
| 154 | full_write2_str("\nNo help available.\n\n"); | 154 | full_write2_str("\nNo help available\n"); |
| 155 | else { | 155 | else { |
| 156 | full_write2_str("\nUsage: "); | 156 | full_write2_str("\nUsage: "); |
| 157 | full_write2_str(applet_name); | 157 | full_write2_str(applet_name); |
