summaryrefslogtreecommitdiff
path: root/src/map/chat.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 06:02:39 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 06:02:39 +0000
commiteedd229519169dee4733be16f9e842fc29ae7110 (patch)
tree1f6e77b4c1f40f457742cced9dcc5801c9d1b468 /src/map/chat.c
parent0fc7a56a962e4b337d6aa639b5447450b760c045 (diff)
downloadhercules-eedd229519169dee4733be16f9e842fc29ae7110.tar.gz
hercules-eedd229519169dee4733be16f9e842fc29ae7110.tar.bz2
hercules-eedd229519169dee4733be16f9e842fc29ae7110.tar.xz
hercules-eedd229519169dee4733be16f9e842fc29ae7110.zip
more compile errors
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1040 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chat.c')
-rw-r--r--src/map/chat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/chat.c b/src/map/chat.c
index cfd2660e0..3bd29fec3 100644
--- a/src/map/chat.c
+++ b/src/map/chat.c
@@ -29,7 +29,7 @@ int chat_createchat(struct map_session_data *sd,int limit,int pub,char* pass,cha
nullpo_retr(0, sd);
- cd = aCalloc(1,sizeof(struct chat_data));
+ cd = (struct chat_data *) aCalloc(1,sizeof(struct chat_data));
cd->limit = limit;
cd->pub = pub;
@@ -78,7 +78,7 @@ int chat_joinchat(struct map_session_data *sd,int chatid,char* pass)
clif_joinchatfail(sd,0);
return 0;
}
- if(cd->pub==0 && strncmp(pass,cd->pass,8)){
+ if(cd->pub==0 && strncmp(pass,(char *) cd->pass,8)){
clif_joinchatfail(sd,1);
return 0;
}
@@ -268,7 +268,7 @@ int chat_createnpcchat(struct npc_data *nd,int limit,int pub,int trigger,char* t
nullpo_retr(1, nd);
- cd = aCalloc(1,sizeof(struct chat_data));
+ cd = (struct chat_data *) aCalloc(1,sizeof(struct chat_data));
cd->limit = cd->trigger = limit;
if(trigger>0)