shithub: choc

Download patch

ref: aceb68d67dcaf9c9d0b5a1df8debaa89904f04ee
parent: 10ba5264f8872b921778cf9406a98933b9831699
author: Turo Lamminen <[email protected]>
date: Sat Dec 8 10:31:43 EST 2018

misc: Make M_WriteFile source parameter const

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -178,7 +178,7 @@
 // M_WriteFile
 //
 
-boolean M_WriteFile(const char *name, void *source, int length)
+boolean M_WriteFile(const char *name, const 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(const char *name, void *source, int length);
+boolean M_WriteFile(const char *name, const void *source, int length);
 int M_ReadFile(const char *name, byte **buffer);
 void M_MakeDirectory(const char *dir);
 char *M_TempFile(const char *s);