shithub: choc

Download patch

ref: 49b5751693974214848439b429667a82254f5606
parent: 90ded64b2b24fb64b31519769a8ceee986c75c44
author: Turo Lamminen <[email protected]>
date: Tue Mar 6 15:05:31 EST 2018

Make TXT_SelectFile window_title parameter const

--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -556,7 +556,7 @@
     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;
--- a/textscreen/txt_fileselect.h
+++ b/textscreen/txt_fileselect.h
@@ -50,7 +50,7 @@
  *                    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.