shithub: choc

Download patch

ref: 2ac504e292204aac575e1e10cd66745ec06a7254
parent: 19bae1157cf0de3461b05d87c1bf2a25f376d51d
author: Turo Lamminen <turotl@gmail.com>
date: Fri Mar 2 18:39:04 EST 2018

Make M_TempFile parameter const

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -233,7 +233,7 @@
 //
 // The returned value must be freed with Z_Free after use.
 
-char *M_TempFile(char *s)
+char *M_TempFile(const char *s)
 {
     char *tempdir;
 
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -28,7 +28,7 @@
 boolean M_WriteFile(const char *name, void *source, int length);
 int M_ReadFile(const char *name, byte **buffer);
 void M_MakeDirectory(const char *dir);
-char *M_TempFile(char *s);
+char *M_TempFile(const char *s);
 boolean M_FileExists(char *file);
 char *M_FileCaseExists(char *file);
 long M_FileLength(FILE *handle);