ref: 95fef9ea786a52bfa07e94fdaae22c6d0e3f30c8
parent: 2efb4fb87b94345456bb2f7d19c3f5fe59316511
author: Turo Lamminen <[email protected]>
date: Fri Mar 2 18:48:35 EST 2018
Make M_FileCaseExists parameter const
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -86,7 +86,7 @@
// Check if a file exists by probing for common case variation of its filename.
// Returns a newly allocated string that the caller is responsible for freeing.
-char *M_FileCaseExists(char *path)
+char *M_FileCaseExists(const char *path)
{
char *path_dup, *filename, *ext;
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -30,7 +30,7 @@
void M_MakeDirectory(const char *dir);
char *M_TempFile(const char *s);
boolean M_FileExists(const char *file);
-char *M_FileCaseExists(char *file);
+char *M_FileCaseExists(const char *file);
long M_FileLength(FILE *handle);
boolean M_StrToInt(const char *str, int *result);
void M_ExtractFileBase(char *path, char *dest);