commit 27a28b8ad9a594fd395ba9c7437752098cdee75d
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 6 19:14:45 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200
Make TXT_NewCheckBox label parameter const
---
textscreen/txt_checkbox.c | 2 +-
textscreen/txt_checkbox.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_checkbox.c b/textscreen/txt_checkbox.c
index 8610c719..49f66f43 100644
--- a/textscreen/txt_checkbox.c
+++ b/textscreen/txt_checkbox.c
@@ -116,7 +116,7 @@ txt_widget_class_t txt_checkbox_class =
NULL,
};
-txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable)
+txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable)
{
txt_checkbox_t *checkbox;
diff --git a/textscreen/txt_checkbox.h b/textscreen/txt_checkbox.h
index 08f37d44..91e7d61c 100644
--- a/textscreen/txt_checkbox.h
+++ b/textscreen/txt_checkbox.h
@@ -55,7 +55,7 @@ struct txt_checkbox_s
* @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.