From 19a0939300f332e32e6dfc05889651f91e7663c0 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 6 Mar 2018 20:12:40 +0200 Subject: [PATCH] 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.