aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-04-21 12:15:59 -0500
committerRob Landley <rob@landley.net>2013-04-21 12:15:59 -0500
commit933919cd8094e870b3e7a554605fd49b20ddb1e0 (patch)
tree43e45408ba26d5d8e972d8cef2bb5e2e69d120cc
parent553aacf6e39bb18dff87ce1a48210a97408b93dd (diff)
downloadtoybox-933919cd8094e870b3e7a554605fd49b20ddb1e0.tar.gz
Fix some comments from way back when toybox first started (in 2006), when I was still cleaning busybox-isms out of my head...
-rw-r--r--main.c6
-rw-r--r--toys.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 9370efd3..ac49e9b6 100644
--- a/main.c
+++ b/main.c
@@ -16,7 +16,7 @@ struct toy_list toy_list[] = {
#include "generated/newtoys.h"
};
-// global context for this applet.
+// global context for this command.
struct toy_context toys;
union global_union this;
@@ -32,7 +32,7 @@ struct toy_list *toy_find(char *name)
if (!strncmp(name,"toybox",6)) return toy_list;
bottom = 1;
- // Binary search to find this applet.
+ // Binary search to find this command.
top = ARRAY_LEN(toy_list)-1;
for (;;) {
@@ -123,7 +123,7 @@ void toybox_main(void)
}
}
- // Output list of applets.
+ // Output list of command.
for (i=1; i<ARRAY_LEN(toy_list); i++) {
int fl = toy_list[i].flags;
if (fl & TOYMASK_LOCATION) {
diff --git a/toys.h b/toys.h
index 95631433..019c1b55 100644
--- a/toys.h
+++ b/toys.h
@@ -89,7 +89,7 @@ void toy_exec(char *argv[]);
#define TOYFLAG_NEEDROOT (1<<7)
#define TOYFLAG_ROOTONLY (TOYFLAG_STAYROOT|TOYFLAG_NEEDROOT)
-// Array of available applets
+// Array of available commands
extern struct toy_list {
char *name;