Make the extern NUM_APPLETS be a extern const NUM_APPLETS, to match
the actual definition. -Erik
This commit is contained in:
@@ -74,7 +74,7 @@ static int applet_name_compare(const void *x, const void *y)
|
|||||||
return strcmp(name, applet->name);
|
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)
|
struct BB_applet *find_applet_by_name(const char *name)
|
||||||
{
|
{
|
||||||
|
@@ -74,7 +74,7 @@ static int applet_name_compare(const void *x, const void *y)
|
|||||||
return strcmp(name, applet->name);
|
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)
|
struct BB_applet *find_applet_by_name(const char *name)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user