shithub: choc

Download patch

ref: a6fbae76cd2725485cb8d98572dfa6b0eb884349
parent: 94d85c51b0aa49fbfcc72fc969815fb477052319
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 15:46:36 EDT 2018

Make TXT_SetSeparatorLabel label parameter const

--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -73,7 +73,7 @@
     free(separator->label);
 }
 
-void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label)
+void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label)
 {
     free(separator->label);
 
--- a/textscreen/txt_separator.h
+++ b/textscreen/txt_separator.h
@@ -59,7 +59,7 @@
  * @param label         The new label (UTF-8 format).
  */
 
-void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label);
+void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label);
 
 #endif /* #ifndef TXT_SEPARATOR_H */