shithub: choc

Download patch

ref: deefc1dd49cfefcd0d36331574523f49654bf0b8
parent: bad8774dc90d1284708c9ef8769005144508ba08
author: Turo Lamminen <[email protected]>
date: Fri Mar 2 18:13:47 EST 2018

Make M_WriteFile name parameter const

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -178,7 +178,7 @@
 // M_WriteFile
 //
 
-boolean M_WriteFile(char *name, void *source, int length)
+boolean M_WriteFile(const char *name, void *source, int length)
 {
     FILE *handle;
     int	count;
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -25,7 +25,7 @@
 
 #include "doomtype.h"
 
-boolean M_WriteFile(char *name, void *source, int length);
+boolean M_WriteFile(const char *name, void *source, int length);
 int M_ReadFile(char *name, byte **buffer);
 void M_MakeDirectory(char *dir);
 char *M_TempFile(char *s);