commit 569787da58542a02b830e016115de1ca05a3a25f
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:47:59 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:47:59 2018 +0200
Make TXT_NewSeparator 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 1905bc44..1f30fc64 100644
--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -98,7 +98,7 @@ txt_widget_class_t txt_separator_class =
NULL,
};
-txt_separator_t *TXT_NewSeparator(char *label)
+txt_separator_t *TXT_NewSeparator(const char *label)
{
txt_separator_t *separator;
diff --git a/textscreen/txt_separator.h b/textscreen/txt_separator.h
index 5c88938e..665c5a34 100644
--- a/textscreen/txt_separator.h
+++ b/textscreen/txt_separator.h
@@ -50,7 +50,7 @@ extern txt_widget_class_t txt_separator_class;
* @return The new separator widget.
*/
-txt_separator_t *TXT_NewSeparator(char *label);
+txt_separator_t *TXT_NewSeparator(const char *label);
/**
* Change the label on a separator.