summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Kasanen2010-11-13 23:16:05 +0100
committerDenys Vlasenko2010-11-13 23:16:05 +0100
commit2b662c5deceb43a10f815424de85c1416c379e2a (patch)
tree3ed332b64b57018487f4ccf0a5f87038217cf040
parenta8dc97cb8204d2574de4d65889264427b0485f50 (diff)
downloadbusybox-2b662c5deceb43a10f815424de85c1416c379e2a.zip
busybox-2b662c5deceb43a10f815424de85c1416c379e2a.tar.gz
libbb: remove unused variable
Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/appletlib.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index d7c9288..c417a27 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -103,14 +103,13 @@ void FAST_FUNC bb_show_usage(void)
if (ENABLE_SHOW_USAGE) {
#ifdef SINGLE_APPLET_STR
/* Imagine that this applet is "true". Dont suck in printf! */
- const char *p;
- const char *usage_string = p = unpack_usage_messages();
+ const char *usage_string = unpack_usage_messages();
- if (*p == '\b') {
+ if (*usage_string == '\b') {
full_write2_str("No help available.\n\n");
} else {
full_write2_str("Usage: "SINGLE_APPLET_STR" ");
- full_write2_str(p);
+ full_write2_str(usage_string);
full_write2_str("\n\n");
}
if (ENABLE_FEATURE_CLEAN_UP)