From 5f82ebd75bc5dc6af2ea7325217b002feccef817 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 6 Mar 2018 19:22:26 +0200 Subject: [PATCH] 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 */