commit a6fbae76cd2725485cb8d98572dfa6b0eb884349
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:46:36 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:46:36 2018 +0200
Make TXT_SetSeparatorLabel label parameter const
---
textscreen/txt_separator.c | 2 +-
textscreen/txt_separator.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_separator.c b/textscreen/txt_separator.c
index d5b9562e..1905bc44 100644
--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -73,7 +73,7 @@ static void TXT_SeparatorDestructor(TXT_UNCAST_ARG(separator))
free(separator->label);
}
-void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label)
+void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label)
{
free(separator->label);
diff --git a/textscreen/txt_separator.h b/textscreen/txt_separator.h
index a9948c45..5c88938e 100644
--- a/textscreen/txt_separator.h
+++ b/textscreen/txt_separator.h
@@ -59,7 +59,7 @@ txt_separator_t *TXT_NewSeparator(char *label);
* @param label The new label (UTF-8 format).
*/
-void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label);
+void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label);
#endif /* #ifndef TXT_SEPARATOR_H */