summaryrefslogtreecommitdiffstats
path: root/include/globalvar.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-23 09:13:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-08-26 12:52:12 +0200
commit546c5a9c788eb63f3e3a0ed74f6498cc19c2b07d (patch)
tree20912085e85bf288198c375eb3d5bdc6bb6a87e3 /include/globalvar.h
parentf38ba32965c5686c062884fab2e9f505015af82a (diff)
downloadbarebox-546c5a9c788eb63f3e3a0ed74f6498cc19c2b07d.tar.gz
barebox-546c5a9c788eb63f3e3a0ed74f6498cc19c2b07d.tar.xz
param_enum: Make name strings const
Not only the array containing the pointers should be const but also the strings themselves, so instead of using const char ** use const char * const *. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/globalvar.h')
-rw-r--r--include/globalvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
index 6e10956b89..e77209bd79 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -60,7 +60,7 @@ static inline int globalvar_add_simple_bool(const char *name,
}
static inline int globalvar_add_simple_enum(const char *name,
- int *value, const char **names, int max)
+ int *value, const char * const *names, int max)
{
struct param_d *p;
@@ -117,7 +117,7 @@ static inline int globalvar_add_simple_bool(const char *name,
}
static inline int globalvar_add_simple_enum(const char *name,
- int *value, const char **names, int max)
+ int *value, const char * const *names, int max)
{
return 0;
}