shithub: choc

Download patch

ref: 4b48cd7f9d810955352cb03fab9cfa39f747c68b
parent: 44b80b2a7a1b2a4866267ca7d7bda11ae926a4bb
author: Turo Lamminen <[email protected]>
date: Tue Mar 6 13:54:45 EST 2018

Make TXT_NewButton parameter const

--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -99,7 +99,7 @@
     button->label = strdup(label);
 }
 
-txt_button_t *TXT_NewButton(char *label)
+txt_button_t *TXT_NewButton(const char *label)
 {
     txt_button_t *button;
 
--- a/textscreen/txt_button.h
+++ b/textscreen/txt_button.h
@@ -45,7 +45,7 @@
  * @return             Pointer to the new button widget.
  */
 
-txt_button_t *TXT_NewButton(char *label);
+txt_button_t *TXT_NewButton(const char *label);
 
 /**
  * Create a new button widget, binding the "pressed" signal to a