foxygit / doom Log in
commit a2b9c9c5d364e9c10b7a23eddd8c6358e302217b
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Jul 21 16:40:35 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Jul 21 16:56:35 2018 +0300

    wad: Make W_OpenFile parameters const
---
 src/w_file.c | 2 +-
 src/w_file.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/w_file.c b/src/w_file.c
index feb5772f..fd64d10e 100644
--- a/src/w_file.c
+++ b/src/w_file.c
@@ -46,7 +46,7 @@ static wad_file_class_t *wad_file_classes[] =
     &stdc_wad_file,
 };

-wad_file_t *W_OpenFile(char *path)
+wad_file_t *W_OpenFile(const char *path)
 {
     wad_file_t *result;
     int i;
diff --git a/src/w_file.h b/src/w_file.h
index 786b79bb..e31ceaf0 100644
--- a/src/w_file.h
+++ b/src/w_file.h
@@ -58,7 +58,7 @@ struct _wad_file_s
 // 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.