shithub: choc

Download patch

ref: 904f70c0766feec220ffbad4563206f5ced5ddd3
parent: 1b1b07dab2a0e58e9cd1a70958d8093c0afd090d
author: Turo Lamminen <[email protected]>
date: Sat Mar 31 13:51:08 EDT 2018

Make DEH_OpenFile parameter const

--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -83,7 +83,7 @@
 // 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;
--- 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);