commit 50e55526b3d84bfd030c1d1ee02ba66b1a875a4d
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:07:30 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200
Make TXT_SetLabel value 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 61df188d..191064cd 100644
--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -113,7 +113,7 @@ txt_widget_class_t txt_label_class =
NULL,
};
-void TXT_SetLabel(txt_label_t *label, char *value)
+void TXT_SetLabel(txt_label_t *label, const char *value)
{
char *p;
unsigned int y;
diff --git a/textscreen/txt_label.h b/textscreen/txt_label.h
index 3786843a..546e83e6 100644
--- a/textscreen/txt_label.h
+++ b/textscreen/txt_label.h
@@ -58,7 +58,7 @@ txt_label_t *TXT_NewLabel(char *label);
* @param value The string to display (UTF-8 format).
*/
-void TXT_SetLabel(txt_label_t *label, char *value);
+void TXT_SetLabel(txt_label_t *label, const char *value);
/**
* Set the background color of a label widget.