diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-17 17:08:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-17 17:08:35 +0300 |
commit | 7d9be803ec4b90ff468365d6f843da9da74ac6e2 (patch) | |
tree | de7ecee1625d87bd0320502a4efc9eed611c606a /src/emap | |
parent | a369f1276f7a3f9f10dc6878d883e4cdd14ee132 (diff) | |
download | evol-hercules-7d9be803ec4b90ff468365d6f843da9da74ac6e2.tar.gz evol-hercules-7d9be803ec4b90ff468365d6f843da9da74ac6e2.tar.bz2 evol-hercules-7d9be803ec4b90ff468365d6f843da9da74ac6e2.tar.xz evol-hercules-7d9be803ec4b90ff468365d6f843da9da74ac6e2.zip |
Fix compilation warning after server update.
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/pc.c | 4 | ||||
-rw-r--r-- | src/emap/pc.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c index 1a7ff22..898ea28 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -33,12 +33,12 @@ int langScriptId; int mountScriptId; -int epc_readparam_pre(TBL_PC **sdPtr, +int epc_readparam_pre(const TBL_PC **sdPtr, int *type) { if (*type == Const_ClientVersion) { - struct SessionExt *data = session_get_bysd(*sdPtr); + struct SessionExt *data = session_get_bysd((TBL_PC*)(*sdPtr)); hookStop(); if (!data) return 0; diff --git a/src/emap/pc.h b/src/emap/pc.h index 88a544d..83e43de 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -9,7 +9,7 @@ enum VarConst Const_ClientVersion = 10000 }; -int epc_readparam_pre(TBL_PC **sdPtr, +int epc_readparam_pre(const TBL_PC **sdPtr, int *type); int epc_setregistry_pre(TBL_PC **sdPtr, |