Move static variable declaration into implementation file, since that's where it belongs. Fixes a compiler warning.

This commit is contained in:
jdolan 2013-07-07 09:49:23 -04:00
parent dc575b2e2f
commit 75b26411c3
2 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,9 @@
#include "stdio.h"
#include "qlvfs.h"
static FILE *xored_open_files[MAX_FILE_HANDLES];
static int xor_max_pos = 0;
/* Luigi Auriemma's quakelivedec.c */
static unsigned char quakelive_xor[] =
"\xcf\x8e\x8e\x4c\xd0\xd9\x30\xce\x07\x32\x27\x64\xed\x16\x06\x12"

View File

@ -1,6 +1,4 @@
#define MAX_FILE_HANDLES 8192 //64 // qcommon.h
static FILE *xored_open_files[MAX_FILE_HANDLES];
static int xor_max_pos = 0;
FILE* fopen_ql (const char* filename, const char* mode);
size_t fread_ql (void *ptr, size_t size, size_t nmeb, FILE *stream);