ref: 6283e91fbd797eed1720ed5b23512f4c3783227c
parent: 50e55526b3d84bfd030c1d1ee02ba66b1a875a4d
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 15:19:14 EDT 2018
Make TXT_NewLabel parameter const
--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -168,7 +168,7 @@
}
}
-txt_label_t *TXT_NewLabel(char *text)
+txt_label_t *TXT_NewLabel(const char *text)
{
txt_label_t *label;
--- a/textscreen/txt_label.h
+++ b/textscreen/txt_label.h
@@ -49,7 +49,7 @@
* @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.