foxygit / doom Log in
commit 695895ddb2231ffed9284dd5346d1c6007e5c4df
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 27 19:33:52 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 27 19:33:52 2018 +0300

    textscreen: Make AddOperatorButton label parameter const in calculator example
---
 textscreen/examples/calculator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c
index f086e87e..c50af2ea 100644
--- a/textscreen/examples/calculator.c
+++ b/textscreen/examples/calculator.c
@@ -81,7 +81,7 @@ void Operator(TXT_UNCAST_ARG(button), TXT_UNCAST_ARG(op))
     starting_input = 1;
 }

-void AddOperatorButton(txt_table_t *table, char *label, operator_t op)
+void AddOperatorButton(txt_table_t *table, const char *label, operator_t op)
 {
     char buf[10];
     operator_t *op_copy;