shithub: choc

Download patch

ref: 71ea0f904f3d1212d9b29f22575de43ad07e5853
parent: 569787da58542a02b830e016115de1ca05a3a25f
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 13 15:53:42 EDT 2018

Make TXT_SetRadioButtonLabel value parameter const

--- a/textscreen/txt_radiobutton.c
+++ b/textscreen/txt_radiobutton.c
@@ -135,7 +135,7 @@
     return radiobutton;
 }
 
-void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value)
+void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, const char *value)
 {
     free(radiobutton->label);
     radiobutton->label = strdup(value);
--- a/textscreen/txt_radiobutton.h
+++ b/textscreen/txt_radiobutton.h
@@ -72,7 +72,7 @@
  * @param value          The new label (UTF-8 format).
  */
 
-void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value);
+void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, const char *value);
 
 #endif /* #ifndef TXT_RADIOBUTTON_H */