foxygit / doom Log in
commit 5f82ebd75bc5dc6af2ea7325217b002feccef817
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 6 19:22:26 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200

    Make TXT_NewInvertedCheckBox 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 49f66f43..a5984dc5 100644
--- a/textscreen/txt_checkbox.c
+++ b/textscreen/txt_checkbox.c
@@ -130,7 +130,7 @@ txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable)
     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;

diff --git a/textscreen/txt_checkbox.h b/textscreen/txt_checkbox.h
index 91e7d61c..039c0643 100644
--- a/textscreen/txt_checkbox.h
+++ b/textscreen/txt_checkbox.h
@@ -69,7 +69,7 @@ txt_checkbox_t *TXT_NewCheckBox(const char *label, int *variable);
  * @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 */