commit 6283e91fbd797eed1720ed5b23512f4c3783227c
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:19:14 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200
Make TXT_NewLabel parameter const
---
textscreen/txt_label.c | 2 +-
textscreen/txt_label.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_label.c b/textscreen/txt_label.c
index 191064cd..07834f46 100644
--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -168,7 +168,7 @@ void TXT_SetLabel(txt_label_t *label, const char *value)
}
}
-txt_label_t *TXT_NewLabel(char *text)
+txt_label_t *TXT_NewLabel(const char *text)
{
txt_label_t *label;
diff --git a/textscreen/txt_label.h b/textscreen/txt_label.h
index 546e83e6..8700c326 100644
--- a/textscreen/txt_label.h
+++ b/textscreen/txt_label.h
@@ -49,7 +49,7 @@ struct txt_label_s
* @return Pointer to the new label widget.
*/
-txt_label_t *TXT_NewLabel(char *label);
+txt_label_t *TXT_NewLabel(const char *label);
/**
* Set the string displayed in a label widget.