mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Move static variable declaration into implementation file, since that's where it belongs. Fixes a compiler warning.
This commit is contained in:
parent
dc575b2e2f
commit
75b26411c3
2 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,9 @@
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
#include "qlvfs.h"
|
#include "qlvfs.h"
|
||||||
|
|
||||||
|
static FILE *xored_open_files[MAX_FILE_HANDLES];
|
||||||
|
static int xor_max_pos = 0;
|
||||||
|
|
||||||
/* Luigi Auriemma's quakelivedec.c */
|
/* Luigi Auriemma's quakelivedec.c */
|
||||||
static unsigned char quakelive_xor[] =
|
static unsigned char quakelive_xor[] =
|
||||||
"\xcf\x8e\x8e\x4c\xd0\xd9\x30\xce\x07\x32\x27\x64\xed\x16\x06\x12"
|
"\xcf\x8e\x8e\x4c\xd0\xd9\x30\xce\x07\x32\x27\x64\xed\x16\x06\x12"
|
||||||
|
@ -175,4 +178,4 @@ int fclose_ql (FILE* stream) {
|
||||||
|
|
||||||
ret = fclose((FILE *)stream);
|
ret = fclose((FILE *)stream);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#define MAX_FILE_HANDLES 8192 //64 // qcommon.h
|
#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);
|
FILE* fopen_ql (const char* filename, const char* mode);
|
||||||
size_t fread_ql (void *ptr, size_t size, size_t nmeb, FILE *stream);
|
size_t fread_ql (void *ptr, size_t size, size_t nmeb, FILE *stream);
|
||||||
int fclose_ql (FILE* stream);
|
int fclose_ql (FILE* stream);
|
||||||
|
|
Loading…
Reference in a new issue