summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-04-30 00:13:21 +0200
committerHaru <haru@dotalux.com>2016-04-30 00:13:21 +0200
commit16dba4f8334c4894d39ac1b17734119b404a9d47 (patch)
tree587fa4cdb8884f8de6bd237273c602ef676e6d33 /src/map/intif.c
parente88ac41acf8d488c2b96771372a34880069e251a (diff)
downloadhercules-16dba4f8334c4894d39ac1b17734119b404a9d47.tar.gz
hercules-16dba4f8334c4894d39ac1b17734119b404a9d47.tar.bz2
hercules-16dba4f8334c4894d39ac1b17734119b404a9d47.tar.xz
hercules-16dba4f8334c4894d39ac1b17734119b404a9d47.zip
Changed the name of two intif functions, incorrectly named mapif_*
- mapif_parse_WisToGM_sub() renamed to intif_parse_WisToGM_sub() - mapif_parse_WisToGM() renamed to intif_parse_WisToGM_sub() Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index da8eedb8d..346a847c8 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1007,7 +1007,8 @@ void intif_parse_WisEnd(int fd)
return;
}
-int mapif_parse_WisToGM_sub(struct map_session_data* sd,va_list va) {
+int intif_parse_WisToGM_sub(struct map_session_data *sd, va_list va)
+{
int permission = va_arg(va, int);
char *wisp_name;
char *message;
@@ -1025,7 +1026,7 @@ int mapif_parse_WisToGM_sub(struct map_session_data* sd,va_list va) {
// Received wisp message from map-server via char-server for ALL gm
// 0x3003/0x3803 <packet_len>.w <wispname>.24B <permission>.l <message>.?B
-void mapif_parse_WisToGM(int fd)
+void intif_parse_WisToGM(int fd)
{
int permission, mes_len;
char Wisp_name[NAME_LENGTH];
@@ -1040,7 +1041,7 @@ void mapif_parse_WisToGM(int fd)
safestrncpy(Wisp_name, RFIFOP(fd,4), NAME_LENGTH);
safestrncpy(message, RFIFOP(fd,32), mes_len);
// information is sent to all online GM
- map->foreachpc(mapif_parse_WisToGM_sub, permission, Wisp_name, message, mes_len);
+ map->foreachpc(intif->pWisToGM_sub, permission, Wisp_name, message, mes_len);
if (message != mbuf)
aFree(message);
@@ -2491,8 +2492,8 @@ void intif_defaults(void) {
/* parse functions */
intif->pWisMessage = intif_parse_WisMessage;
intif->pWisEnd = intif_parse_WisEnd;
- intif->pWisToGM_sub = mapif_parse_WisToGM_sub;
- intif->pWisToGM = mapif_parse_WisToGM;
+ intif->pWisToGM_sub = intif_parse_WisToGM_sub;
+ intif->pWisToGM = intif_parse_WisToGM;
intif->pRegisters = intif_parse_Registers;
intif->pChangeNameOk = intif_parse_ChangeNameOk;
intif->pMessageToFD = intif_parse_MessageToFD;