summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen2000-11-17 18:51:45 +0000
committerEric Andersen2000-11-17 18:51:45 +0000
commita683ee81d918f338a8335d4f03057106b701afec (patch)
tree0d6fa23ebe6b2c0f3ffc26b2e848e3b480804573 /include
parente5aef92e22172d36152bae6e15d5c0419c758121 (diff)
downloadbusybox-a683ee81d918f338a8335d4f03057106b701afec.zip
busybox-a683ee81d918f338a8335d4f03057106b701afec.tar.gz
"I will always compile before I commit."
"I will always compile before I commit." "I will always compile before I commit." -Erik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h2
-rw-r--r--include/busybox.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h
index a2d73bc..f21a490 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -371,5 +371,5 @@ const struct BB_applet applets[] = {
};
/* The -1 arises because of the {0,NULL,0,NULL} entry above. */
-#define NUM_APPLETS (sizeof (applets) / sizeof (struct BB_applet) - 1)
+size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);
diff --git a/include/busybox.h b/include/busybox.h
index 2bc1c99..f0f8d5d 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -108,6 +108,9 @@ struct BB_applet {
/* From busybox.c */
extern const struct BB_applet applets[];
+extern size_t NUM_APPLETS;
+
+
extern int applet_name_compare(const void *x, const void *y);
extern int ar_main(int argc, char **argv);