shithub: choc

Download patch

ref: 50e55526b3d84bfd030c1d1ee02ba66b1a875a4d
parent: aa555a22c129d5f94456142f3ebab1ebca17b66d
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 13 15:07:30 EDT 2018

Make TXT_SetLabel value parameter const

--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -113,7 +113,7 @@
     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;
--- a/textscreen/txt_label.h
+++ b/textscreen/txt_label.h
@@ -58,7 +58,7 @@
  * @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.