diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2014-12-03 15:33:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-12-04 08:24:05 +0100 |
commit | 0d752cb78cbe0c324151267b3d9eb400d19b05a7 (patch) | |
tree | fcf4e6a6e02e1703a97d7b6c7cf357c3c61c50c6 /lib/stringlist.c | |
parent | 2fd1b139697d2d74e11a5597642c293a04a4c0f8 (diff) | |
download | barebox-0d752cb78cbe0c324151267b3d9eb400d19b05a7.tar.gz barebox-0d752cb78cbe0c324151267b3d9eb400d19b05a7.tar.xz |
stringlist: the string argument should be const
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/stringlist.c')
-rw-r--r-- | lib/stringlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stringlist.c b/lib/stringlist.c index 57801b3bb0..8a18366a96 100644 --- a/lib/stringlist.c +++ b/lib/stringlist.c @@ -13,7 +13,7 @@ static int string_list_compare(struct list_head *a, struct list_head *b) return strcmp(astr, bstr); } -int string_list_add(struct string_list *sl, char *str) +int string_list_add(struct string_list *sl, const char *str) { struct string_list *new; @@ -48,7 +48,7 @@ int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...) return 0; } -int string_list_add_sorted(struct string_list *sl, char *str) +int string_list_add_sorted(struct string_list *sl, const char *str) { struct string_list *new; |