shithub: choc

Download patch

ref: 569787da58542a02b830e016115de1ca05a3a25f
parent: a6fbae76cd2725485cb8d98572dfa6b0eb884349
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 15:47:59 EDT 2018

Make TXT_NewSeparator parameter const

--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -98,7 +98,7 @@
     NULL,
 };
 
-txt_separator_t *TXT_NewSeparator(char *label)
+txt_separator_t *TXT_NewSeparator(const char *label)
 {
     txt_separator_t *separator;
 
--- a/textscreen/txt_separator.h
+++ b/textscreen/txt_separator.h
@@ -50,7 +50,7 @@
  * @return              The new separator widget.
  */
 
-txt_separator_t *TXT_NewSeparator(char *label);
+txt_separator_t *TXT_NewSeparator(const char *label);
 
 /**
  * Change the label on a separator.