summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorEric Andersen2000-07-28 15:14:45 +0000
committerEric Andersen2000-07-28 15:14:45 +0000
commit501c88b245fdc63f3f2a044fd7704bb468db3904 (patch)
tree3fff440532d8d380ae7e4f2933bc7163360f8279 /applets
parent6a99aaf0208151b7f5e5058efaa409496e2b7c4b (diff)
downloadbusybox-501c88b245fdc63f3f2a044fd7704bb468db3904.zip
busybox-501c88b245fdc63f3f2a044fd7704bb468db3904.tar.gz
More sh updates (with related changes to everything else). Switched
to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 291d31b..1ed44ed 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -337,7 +337,7 @@ const struct BB_applet applets[] = {
{0,NULL,0,NULL}
};
-char *applet_name;
+const char *applet_name;
#ifdef BB_FEATURE_INSTALLER
/*
@@ -416,7 +416,7 @@ static int install_links(const char *busybox, int use_symbolic_links)
int main(int argc, char **argv)
{
- char *s;
+ const char *s;
const struct BB_applet *a = applets;
applet_name = "busybox";
@@ -455,7 +455,7 @@ int main(int argc, char **argv)
applet_name = s;
}
- *argv = applet_name;
+ *argv = (char*)applet_name;
#ifdef BB_SH
/* Add in a special case hack -- whenever **argv == '-'