foxygit / doom Log in
commit 904f70c0766feec220ffbad4563206f5ced5ddd3
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Mar 31 17:51:08 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Mar 31 17:51:08 2018 +0300

    Make DEH_OpenFile parameter const
---
 src/deh_io.c | 2 +-
 src/deh_io.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/deh_io.c b/src/deh_io.c
index 31fde9f1..840e2a40 100644
--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -83,7 +83,7 @@ static deh_context_t *DEH_NewContext(void)
 // Open a dehacked file for reading
 // Returns NULL if open failed

-deh_context_t *DEH_OpenFile(char *filename)
+deh_context_t *DEH_OpenFile(const char *filename)
 {
     FILE *fstream;
     deh_context_t *context;
diff --git a/src/deh_io.h b/src/deh_io.h
index d70b1ad2..a6ba05f1 100644
--- a/src/deh_io.h
+++ b/src/deh_io.h
@@ -20,7 +20,7 @@

 #include "deh_defs.h"

-deh_context_t *DEH_OpenFile(char *filename);
+deh_context_t *DEH_OpenFile(const char *filename);
 deh_context_t *DEH_OpenLump(int lumpnum);
 void DEH_CloseFile(deh_context_t *context);
 int DEH_GetChar(deh_context_t *context);