foxygit / doom Log in
commit 49b5751693974214848439b429667a82254f5606
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 6 20:05:31 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200

    Make TXT_SelectFile window_title 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 ddc00fed..c9dcaee0 100644
--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -556,7 +556,7 @@ static char *ExpandExtension(const char *orig)
     return newext;
 }

-char *TXT_SelectFile(char *window_title, char **extensions)
+char *TXT_SelectFile(const char *window_title, char **extensions)
 {
     unsigned int i;
     size_t len;
diff --git a/textscreen/txt_fileselect.h b/textscreen/txt_fileselect.h
index c72c6135..9b291859 100644
--- a/textscreen/txt_fileselect.h
+++ b/textscreen/txt_fileselect.h
@@ -50,7 +50,7 @@ int TXT_CanSelectFiles(void);
  *                    to select directories.
  */

-char *TXT_SelectFile(char *prompt, char **extensions);
+char *TXT_SelectFile(const char *prompt, char **extensions);

 /**
  * Create a new txt_fileselect_t widget.