commit 4b48cd7f9d810955352cb03fab9cfa39f747c68b
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 6 18:54:45 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200
Make TXT_NewButton parameter const
---
textscreen/txt_button.c | 2 +-
textscreen/txt_button.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_button.c b/textscreen/txt_button.c
index 688f3db3..48fb782e 100644
--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -99,7 +99,7 @@ void TXT_SetButtonLabel(txt_button_t *button, const char *label)
button->label = strdup(label);
}
-txt_button_t *TXT_NewButton(char *label)
+txt_button_t *TXT_NewButton(const char *label)
{
txt_button_t *button;
diff --git a/textscreen/txt_button.h b/textscreen/txt_button.h
index 5350798d..ee411be7 100644
--- a/textscreen/txt_button.h
+++ b/textscreen/txt_button.h
@@ -45,7 +45,7 @@ struct txt_button_s
* @return Pointer to the new button widget.
*/
-txt_button_t *TXT_NewButton(char *label);
+txt_button_t *TXT_NewButton(const char *label);
/**
* Create a new button widget, binding the "pressed" signal to a