ref: aacff41c26a3130bde300ea5c184497379e03af8
parent: 71ea0f904f3d1212d9b29f22575de43ad07e5853
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 15:57:07 EDT 2018
Make TXT_NewRadioButton label parameter const
--- a/textscreen/txt_radiobutton.c
+++ b/textscreen/txt_radiobutton.c
@@ -121,7 +121,7 @@
NULL,
};
-txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value)
+txt_radiobutton_t *TXT_NewRadioButton(const char *label, int *variable, int value)
{
txt_radiobutton_t *radiobutton;
--- a/textscreen/txt_radiobutton.h
+++ b/textscreen/txt_radiobutton.h
@@ -63,7 +63,7 @@
* @return Pointer to the new radio button widget.
*/
-txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value);
+txt_radiobutton_t *TXT_NewRadioButton(const char *label, int *variable, int value);
/**
* Set the label on a radio button.