commit 19a0939300f332e32e6dfc05889651f91e7663c0
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 6 20:12:40 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200
Make TXT_NewWindow parameter const
---
textscreen/txt_window.c | 2 +-
textscreen/txt_window.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 54f84fdb..aca34e57 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -52,7 +52,7 @@ void TXT_SetWindowAction(txt_window_t *window,
}
}
-txt_window_t *TXT_NewWindow(char *title)
+txt_window_t *TXT_NewWindow(const char *title)
{
int i;
diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h
index 13a0e171..f9cc4754 100644
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -100,7 +100,7 @@ struct txt_window_s
* representing the new window.
*/
-txt_window_t *TXT_NewWindow(char *title);
+txt_window_t *TXT_NewWindow(const char *title);
/**
* Close a window.