ref: 5508740367ca91d4f266803d70d9b8fbe86f5cba
parent: deefc1dd49cfefcd0d36331574523f49654bf0b8
author: Turo Lamminen <[email protected]>
date: Fri Mar 2 18:21:01 EST 2018
Make M_ReadFile name parameter const
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -202,7 +202,7 @@
// M_ReadFile
//
-int M_ReadFile(char *name, byte **buffer)
+int M_ReadFile(const char *name, byte **buffer)
{
FILE *handle;
int count, length;
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -26,7 +26,7 @@
#include "doomtype.h"
boolean M_WriteFile(const char *name, void *source, int length);
-int M_ReadFile(char *name, byte **buffer);
+int M_ReadFile(const char *name, byte **buffer);
void M_MakeDirectory(char *dir);
char *M_TempFile(char *s);
boolean M_FileExists(char *file);