summaryrefslogtreecommitdiff
path: root/src/char/inter.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-01 22:35:47 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-01 22:35:47 +0000
commit710fd0b41561dd63b29d6b9c14540835b4c1bd74 (patch)
tree8b6083419e7a57f2cb2c6cecfbdfa707608db813 /src/char/inter.c
parent3f930b2176fb290ce7f23fce9b3c1e4016c4485b (diff)
downloadhercules-710fd0b41561dd63b29d6b9c14540835b4c1bd74.tar.gz
hercules-710fd0b41561dd63b29d6b9c14540835b4c1bd74.tar.bz2
hercules-710fd0b41561dd63b29d6b9c14540835b4c1bd74.tar.xz
hercules-710fd0b41561dd63b29d6b9c14540835b4c1bd74.zip
Follow up r16025 fixing gcc warning, special thanks to brian for noticing.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16028 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/inter.c')
-rw-r--r--src/char/inter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index 68be90e07..3704997c6 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -377,10 +377,11 @@ const char * geoip_countryname[253] = {"Unknown","Asia/Pacific Region","Europe",
unsigned char *geoip_cache;
void geoip_readdb(void){
struct stat bufa;
+ size_t fileReadCount;
FILE *db=fopen("./db/GeoIP.dat","r");
fstat(fileno(db), &bufa);
geoip_cache = (unsigned char *) malloc(sizeof(unsigned char) * bufa.st_size);
- fread(geoip_cache, sizeof(unsigned char), bufa.st_size, db);
+ fileReadCount = fread(geoip_cache, sizeof(unsigned char), bufa.st_size, db);
fclose(db);
ShowStatus("Finished Reading "CL_GREEN"GeoIP"CL_RESET" Database.\n");
}