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
commit0155c9666c00e75a341b9d7bffc16745b5ed897f (patch)
treef876cbe58fcb5a52d642b5ea215236dc1c14bbab /src/map/map.c
parent1e87d8276dd8a5535b311299d5666430b61898c4 (diff)
downloadhercules-0155c9666c00e75a341b9d7bffc16745b5ed897f.tar.gz
hercules-0155c9666c00e75a341b9d7bffc16745b5ed897f.tar.bz2
hercules-0155c9666c00e75a341b9d7bffc16745b5ed897f.tar.xz
hercules-0155c9666c00e75a341b9d7bffc16745b5ed897f.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/branches/renewal@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;
}