ref: 27a28b8ad9a594fd395ba9c7437752098cdee75d
parent: 898442b1015f2300751eb465d4d0eb577aa2a633
author: Turo Lamminen <[email protected]>
date: Tue Mar 6 14:14:45 EST 2018
Make TXT_NewCheckBox label parameter const
--- a/textscreen/txt_checkbox.c
+++ b/textscreen/txt_checkbox.c
@@ -116,7 +116,7 @@
NULL,
};
-txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable)
+txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable)
{
txt_checkbox_t *checkbox;
--- a/textscreen/txt_checkbox.h
+++ b/textscreen/txt_checkbox.h
@@ -55,7 +55,7 @@
* @return Pointer to the new checkbox.
*/
-txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable);
+txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable);
/**
* Create a new inverted checkbox.