Fixed a rare compile error and a warning

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1335 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-14 16:56:59 +00:00
parent d9e16591c7
commit c890800e0e

View file

@ -187,7 +187,7 @@ qboolean FSOS_FLocate(void *handle, flocation_t *loc, char *filename, void *hash
*/ */
// check a file in the directory tree // check a file in the directory tree
_snprintf (netpath, sizeof(netpath)-1, "%s/%s",handle, filename); _snprintf (netpath, sizeof(netpath)-1, "%s/%s",(char*)handle, filename);
f = fopen(netpath, "rb"); f = fopen(netpath, "rb");
if (!f) if (!f)
@ -407,7 +407,7 @@ searchpathfuncs_t packfilefuncs = {
//====================================================================================================== //======================================================================================================
//ZIP files (*.zip *.pk3) //ZIP files (*.zip *.pk3)
void *com_pathforfile; //fread and stuff is preferable if null
#define ZEXPORT VARGS #define ZEXPORT VARGS
@ -434,8 +434,6 @@ typedef struct zipfile_s
#endif #endif
} zipfile_t; } zipfile_t;
void *com_pathforfile; //fread and stuff is preferable if null.
static void FSZIP_PrintPath(void *handle) static void FSZIP_PrintPath(void *handle)
{ {