summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-02 04:24:46 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-02 04:24:46 +0000
commit5ffec3d741ee12ffdf55467dee5245cd50b9f702 (patch)
treecd04f375116d2f97dc8a93e66b3d71ee6b4d5159 /src/map/map.c
parent771ec0d02a5660a10f27d8545917104f40e802fa (diff)
downloadhercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.gz
hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.bz2
hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.xz
hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.zip
Applied patch by xazax to clean up various bits of code across mapserver code. (bugreport:4512)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14438 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index be50cf887..e696b874d 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2673,7 +2673,7 @@ int map_eraseipport(unsigned short mapindex, uint32 ip, uint16 port)
*------------------------------------------*/
static char *map_init_mapcache(FILE *fp)
{
- size_t size = 0, read_size;
+ size_t size = 0;
char *buffer;
// No file open? Return..
@@ -2691,7 +2691,7 @@ static char *map_init_mapcache(FILE *fp)
nullpo_ret(buffer);
// Read file into buffer..
- if((read_size = fread(buffer, sizeof(char), size, fp)) != size) {
+ if(fread(buffer, sizeof(char), size, fp) != size) {
ShowError("map_init_mapcache: Could not read entire mapcache file\n");
return NULL;
}