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 /include | |
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 'include')
-rw-r--r-- | include/stringlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stringlist.h b/include/stringlist.h index 2e2addf98f..e85500a994 100644 --- a/include/stringlist.h +++ b/include/stringlist.h @@ -8,9 +8,9 @@ struct string_list { char *str; }; -int string_list_add(struct string_list *sl, char *str); +int string_list_add(struct string_list *sl, const char *str); int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...); -int string_list_add_sorted(struct string_list *sl, char *str); +int string_list_add_sorted(struct string_list *sl, const char *str); int string_list_contains(struct string_list *sl, const char *str); void string_list_print_by_column(struct string_list *sl); |