From 0c4fe5bbe5efbef063e0d94b29cc2cc059fab654 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 27 Mar 2018 19:21:38 +0300 Subject: [PATCH] Make TXT_NewFileSelector prompt parameter const --- textscreen/txt_fileselect.c | 2 +- textscreen/txt_fileselect.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/textscreen/txt_fileselect.c b/textscreen/txt_fileselect.c index 42b6f42d..21016b79 100644 --- a/textscreen/txt_fileselect.c +++ b/textscreen/txt_fileselect.c @@ -808,7 +808,7 @@ static void InputBoxChanged(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(fileselect)) } txt_fileselect_t *TXT_NewFileSelector(char **variable, int size, - char *prompt, const char **extensions) + const char *prompt, const char **extensions) { txt_fileselect_t *fileselect; diff --git a/textscreen/txt_fileselect.h b/textscreen/txt_fileselect.h index 10ed84c1..fe5fac79 100644 --- a/textscreen/txt_fileselect.h +++ b/textscreen/txt_fileselect.h @@ -66,7 +66,7 @@ char *TXT_SelectFile(const char *prompt, const char **extensions); */ txt_fileselect_t *TXT_NewFileSelector(char **variable, int size, - char *prompt, const char **extensions); + const char *prompt, const char **extensions); /** * Special value to use for 'extensions' that selects a directory