shithub: choc

Download patch

ref: a2b9c9c5d364e9c10b7a23eddd8c6358e302217b
parent: a934b69f22bac8b05846eff94bd61b6d25b767b9
author: Turo Lamminen <turotl@gmail.com>
date: Sat Jul 21 12:40:35 EDT 2018

wad: Make W_OpenFile parameters const

--- a/src/w_file.c
+++ b/src/w_file.c
@@ -46,7 +46,7 @@
     &stdc_wad_file,
 };
 
-wad_file_t *W_OpenFile(char *path)
+wad_file_t *W_OpenFile(const char *path)
 {
     wad_file_t *result;
     int i;
--- a/src/w_file.h
+++ b/src/w_file.h
@@ -58,7 +58,7 @@
 // Open the specified file. Returns a pointer to a new wad_file_t 
 // handle for the WAD file, or NULL if it could not be opened.
 
-wad_file_t *W_OpenFile(char *path);
+wad_file_t *W_OpenFile(const char *path);
 
 // Close the specified WAD file.