Fixed 2 buildbot warnings throughout multiple operating systems.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16037 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-05-02 03:28:56 +00:00
parent a80b8bad6c
commit 8761ef9d54

View File

@ -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));
}