summaryrefslogtreecommitdiff
path: root/applets/applets.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/applets.c')
-rw-r--r--applets/applets.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 1e31e89..5151103 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -29,12 +29,20 @@
#include <stdlib.h>
#include "busybox.h"
+#undef APPLET
+#undef APPLET_NOUSAGE
+#undef PROTOTYPES
+#include "applets.h"
+
#define bb_need_full_version
#define BB_DECLARE_EXTERN
#include "messages.c"
struct BB_applet *applet_using;
+/* The -1 arises because of the {0,NULL,0,-1} entry above. */
+const size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);
+
extern void show_usage(void)
{
const char *format_string;