summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 04:25:56 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 04:25:56 +0000
commitf204cc7915dac6116bce5f402c8882ea0aff49a4 (patch)
tree35639b6c012b987f5fca8309641d68c76eaa53cb /src/map/npc.c
parentc4f027e10aaeeb4ab72b68cae0b3e66d8bb5a4b2 (diff)
downloadhercules-f204cc7915dac6116bce5f402c8882ea0aff49a4.tar.gz
hercules-f204cc7915dac6116bce5f402c8882ea0aff49a4.tar.bz2
hercules-f204cc7915dac6116bce5f402c8882ea0aff49a4.tar.xz
hercules-f204cc7915dac6116bce5f402c8882ea0aff49a4.zip
Fix some compile errors
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1037 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index cbb6c5495..0519b9925 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1636,26 +1636,26 @@ static int npc_parse_script(char *w1,char *w2,char *w3,char *w4,char *first_line
// スクリプトの解析
srcbuf=(unsigned char *)aCallocA(srcsize,sizeof(char));
if (strchr(first_line,'{')) {
- strcpy(srcbuf,strchr(first_line,'{'));
+ strcpy((char *) srcbuf,strchr(first_line,'{'));
startline=*lines;
} else
srcbuf[0]=0;
while(1) {
- for(i=strlen(srcbuf)-1;i>=0 && isspace(srcbuf[i]);i--);
+ for(i=strlen((const char *) srcbuf)-1;i>=0 && isspace(srcbuf[i]);i--);
if (i>=0 && srcbuf[i]=='}')
break;
- fgets(line,1020,fp);
+ fgets((char *) line,1020,fp);
(*lines)++;
if (feof(fp))
break;
- if (strlen(srcbuf)+strlen(line)+1>=srcsize) {
+ if (strlen((char *) srcbuf)+strlen((char *) line)+1>=srcsize) {
srcsize += 65536;
- srcbuf = (char *)aRealloc(srcbuf, srcsize);
+ srcbuf = (unsigned char *)aRealloc(srcbuf, srcsize);
memset(srcbuf + srcsize - 65536, '\0', 65536);
}
if (srcbuf[0]!='{') {
- if (strchr(line,'{')) {
- strcpy(srcbuf,strchr(line,'{'));
+ if (strchr((char *) line,'{')) {
+ strcpy(srcbuf,strchr((const char *) line,'{'));
startline=*lines;
}
} else