aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-11 17:03:19 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-11 17:03:19 +0000
commite4f2d064b0fcffc8897089e1c80e6e2d61b6805d (patch)
treefe03aa276fa5396402dc2bc88fccb7559626b976 /applets
parent12c96a64a4b7ab75cb0e4a7dfde8960c4391b2a8 (diff)
downloadbusybox-e4f2d064b0fcffc8897089e1c80e6e2d61b6805d.tar.gz
rename: run_applet_by_name -> run_applet_and_exit
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 6f38ccee8..958defe75 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -541,7 +541,7 @@ static int busybox_main(int argc, char **argv)
if (argc > 2) {
/* set name for proper "<name>: applet not found" */
applet_name = argv[2];
- run_applet_by_name(applet_name, 2, argv);
+ run_applet_and_exit(applet_name, 2, argv);
} else {
const struct bb_applet *a;
int col, output_width;
@@ -582,7 +582,7 @@ static int busybox_main(int argc, char **argv)
} else {
/* we want "<argv[1]>: applet not found", not "busybox: ..." */
applet_name = argv[1];
- run_applet_by_name(argv[1], argc - 1, argv + 1);
+ run_applet_and_exit(argv[1], argc - 1, argv + 1);
}
bb_error_msg_and_die("applet not found");
@@ -598,7 +598,7 @@ void run_current_applet_and_exit(int argc, char **argv)
exit(current_applet->main(argc, argv));
}
-void run_applet_by_name(const char *name, int argc, char **argv)
+void run_applet_and_exit(const char *name, int argc, char **argv)
{
current_applet = find_applet_by_name(name);
if (current_applet)
@@ -633,6 +633,6 @@ int main(int argc, char **argv)
if (ENABLE_LOCALE_SUPPORT && getpid() != 1)
setlocale(LC_ALL, "");
- run_applet_by_name(applet_name, argc, argv);
+ run_applet_and_exit(applet_name, argc, argv);
bb_error_msg_and_die("applet not found");
}