aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-13 12:27:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-13 12:27:17 +0000
commitca525b4f24a1a27ffe5dfc8d04c55227ca335ba0 (patch)
tree8ccf1f528aafeeb00368c41be74900db86d43d14 /applets
parentb51fd3525e48c79ef9e854dd357a9cdfdfeef72b (diff)
downloadbusybox-w32-ca525b4f24a1a27ffe5dfc8d04c55227ca335ba0.tar.gz
busybox-w32-ca525b4f24a1a27ffe5dfc8d04c55227ca335ba0.tar.bz2
busybox-w32-ca525b4f24a1a27ffe5dfc8d04c55227ca335ba0.zip
*: BB_BANNER -> bb_banner (it is not a const or #define)!
correct_password: explain in detail why it is ok to use bb_banner fsck_minix: make it print bb version, not it's own (outdated/irrelevant) one Marginal size difference: text data bss dec hex filename 679119 2700 15632 697451 aa46b busybox_old 679091 2700 15632 697423 aa44f busybox_unstripped
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/applets/applets.c b/applets/applets.c
index f34124252..cff792fb7 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -467,11 +467,11 @@ void bb_show_usage(void)
467 i--; 467 i--;
468 } 468 }
469 469
470 format_string = "%s\n\nUsage: %s %s\n\n"; 470 fprintf(stderr, "%s multi-call binary\n", bb_banner);
471 format_string = "\nUsage: %s %s\n\n";
471 if (*p == '\b') 472 if (*p == '\b')
472 format_string = "%s\n\nNo help available.\n\n"; 473 format_string = "\nNo help available.\n\n";
473 fprintf(stderr, format_string, bb_msg_full_version, 474 fprintf(stderr, format_string, applet_name, p);
474 applet_name, p);
475 dealloc_usage_messages((char*)usage_string); 475 dealloc_usage_messages((char*)usage_string);
476 } 476 }
477 xfunc_die(); 477 xfunc_die();
@@ -550,8 +550,8 @@ static int busybox_main(char **argv)
550 /* leading tab and room to wrap */ 550 /* leading tab and room to wrap */
551 output_width -= sizeof("start-stop-daemon, ") + 8; 551 output_width -= sizeof("start-stop-daemon, ") + 8;
552 552
553 printf("%s\n" 553 printf("%s multi-call binary\n", bb_banner); /* reuse const string... */
554 "Copyright (C) 1998-2006  Erik Andersen, Rob Landley, and others.\n" 554 printf("Copyright (C) 1998-2006  Erik Andersen, Rob Landley, and others.\n"
555 "Licensed under GPLv2.  See source distribution for full notice.\n" 555 "Licensed under GPLv2.  See source distribution for full notice.\n"
556 "\n" 556 "\n"
557 "Usage: busybox [function] [arguments]...\n" 557 "Usage: busybox [function] [arguments]...\n"
@@ -561,7 +561,7 @@ static int busybox_main(char **argv)
561 "\tutilities into a single executable. Most people will create a\n" 561 "\tutilities into a single executable. Most people will create a\n"
562 "\tlink to busybox for each function they wish to use and BusyBox\n" 562 "\tlink to busybox for each function they wish to use and BusyBox\n"
563 "\twill act like whatever it was invoked as!\n" 563 "\twill act like whatever it was invoked as!\n"
564 "\nCurrently defined functions:\n", bb_msg_full_version); 564 "\nCurrently defined functions:\n");
565 col = 0; 565 col = 0;
566 a = applets; 566 a = applets;
567 while (a->name) { 567 while (a->name) {