foxygit / doom Log in
commit 0c4fe5bbe5efbef063e0d94b29cc2cc059fab654
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 27 19:21:38 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 27 19:21:38 2018 +0300

    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