Make the extern NUM_APPLETS be a extern const NUM_APPLETS, to match
authorEric Andersen <andersen@codepoet.org>
Sun, 24 Jun 2001 06:09:14 +0000 (06:09 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 24 Jun 2001 06:09:14 +0000 (06:09 -0000)
the actual definition.
 -Erik

applets.c
applets/applets.c

index 90667e52e50918f62b89eabb8edf4dc3ce88dd21..ca2de87d4dd2845ef65dfdd45143c66d8084b010 100644 (file)
--- a/applets.c
+++ b/applets.c
@@ -74,7 +74,7 @@ static int applet_name_compare(const void *x, const void *y)
        return strcmp(name, applet->name);
 }
 
-extern size_t NUM_APPLETS;
+extern const size_t NUM_APPLETS;
 
 struct BB_applet *find_applet_by_name(const char *name)
 {
index 90667e52e50918f62b89eabb8edf4dc3ce88dd21..ca2de87d4dd2845ef65dfdd45143c66d8084b010 100644 (file)
@@ -74,7 +74,7 @@ static int applet_name_compare(const void *x, const void *y)
        return strcmp(name, applet->name);
 }
 
-extern size_t NUM_APPLETS;
+extern const size_t NUM_APPLETS;
 
 struct BB_applet *find_applet_by_name(const char *name)
 {