From 5cc745b316ee6f1e8aa1e8ee4e46fe3f353a7659 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Sun, 22 Sep 2002 03:43:51 +0000 Subject: [PATCH] Removed a warning. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@61 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/reslib.h | 2 +- sc2/src/sc2code/libs/resource/filecntl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sc2/src/sc2code/libs/reslib.h b/sc2/src/sc2code/libs/reslib.h index e327f6935..d826ff6a0 100644 --- a/sc2/src/sc2code/libs/reslib.h +++ b/sc2/src/sc2code/libs/reslib.h @@ -49,7 +49,7 @@ typedef COUNT RES_PACKAGE; ((RESOURCE)(i) << TYPE_BITS) | \ ((RESOURCE)(t))) -extern FILE *OpenResFile (PVOID filename, char *mode); +extern FILE *OpenResFile (PVOID filename, const char *mode); extern int ReadResFile (PVOID lpBuf, COUNT size, COUNT count, FILE *fp); extern int WriteResFile (PVOID lpBuf, COUNT size, COUNT count, FILE *fp); diff --git a/sc2/src/sc2code/libs/resource/filecntl.c b/sc2/src/sc2code/libs/resource/filecntl.c index d8337958e..abf5dcee6 100644 --- a/sc2/src/sc2code/libs/resource/filecntl.c +++ b/sc2/src/sc2code/libs/resource/filecntl.c @@ -26,8 +26,8 @@ #include #include "resintrn.h" -FILE -*OpenResFile (PVOID filename, char *mode) +FILE * +OpenResFile (PVOID filename, const char *mode) { FILE *fp; struct stat sb;