ref: 5f82ebd75bc5dc6af2ea7325217b002feccef817
parent: 27a28b8ad9a594fd395ba9c7437752098cdee75d
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 6 14:22:26 EST 2018
Make TXT_NewInvertedCheckBox label parameter const
--- a/textscreen/txt_checkbox.c
+++ b/textscreen/txt_checkbox.c
@@ -130,7 +130,7 @@
return checkbox;
}
-txt_checkbox_t *TXT_NewInvertedCheckBox(char *label, int *variable)
+txt_checkbox_t *TXT_NewInvertedCheckBox(const char *label, int *variable)
{
txt_checkbox_t *result;
--- a/textscreen/txt_checkbox.h
+++ b/textscreen/txt_checkbox.h
@@ -69,7 +69,7 @@
* @return Pointer to the new checkbox.
*/
-txt_checkbox_t *TXT_NewInvertedCheckBox(char *label, int *variable);
+txt_checkbox_t *TXT_NewInvertedCheckBox(const char *label, int *variable);
#endif /* #ifndef TXT_CHECKBOX_H */