diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-02 03:28:56 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-02 03:28:56 +0000 |
commit | 0e58e4d8048d29b0507116d3206a184e7e71e3d3 (patch) | |
tree | 1b389e7b61e30e4e3289f5fd374e332969de381d /src/tool | |
parent | 96c6073d6eadeac6778523e3ae0da7f4bcab5452 (diff) | |
download | hercules-0e58e4d8048d29b0507116d3206a184e7e71e3d3.tar.gz hercules-0e58e4d8048d29b0507116d3206a184e7e71e3d3.tar.bz2 hercules-0e58e4d8048d29b0507116d3206a184e7e71e3d3.tar.xz hercules-0e58e4d8048d29b0507116d3206a184e7e71e3d3.zip |
Fixed 2 buildbot warnings throughout multiple operating systems.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16037 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool')
-rw-r--r-- | src/tool/mapcache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c index b3bfec01b..9c4fd2cbf 100644 --- a/src/tool/mapcache.c +++ b/src/tool/mapcache.c @@ -197,11 +197,12 @@ int find_map(char *name) { int i; struct map_info info; - + size_t fileReadCount; + fseek(map_cache_fp, sizeof(struct main_header), SEEK_SET); for(i = 0; i < header.map_count; i++) { - fread(&info, sizeof(info), 1, map_cache_fp); + fileReadCount = fread(&info, sizeof(info), 1, map_cache_fp); if(strcmp(name, info.name) == 0) // Map found return 1; else // Map not found, jump to the beginning of the next map info header @@ -291,7 +292,8 @@ int do_init(int argc, char** argv) header.file_size = sizeof(struct main_header); header.map_count = 0; } else { - fread(&header, sizeof(struct main_header), 1, map_cache_fp); + size_t fileReadCount; + fileReadCount = fread(&header, sizeof(struct main_header), 1, map_cache_fp); header.file_size = GetULong((unsigned char *)&(header.file_size)); header.map_count = GetUShort((unsigned char *)&(header.map_count)); } |