summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-25 19:37:58 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-25 19:37:58 +0000
commit604aa8ea6b8691e0b886bc55830930c65226e600 (patch)
tree57efd606c1a7727aadaa9938bbccb89dce09f90e /src/map/intif.c
parentad50b37beff08ee93979c244d24a60c12c7bc1bf (diff)
downloadhercules-604aa8ea6b8691e0b886bc55830930c65226e600.tar.gz
hercules-604aa8ea6b8691e0b886bc55830930c65226e600.tar.bz2
hercules-604aa8ea6b8691e0b886bc55830930c65226e600.tar.xz
hercules-604aa8ea6b8691e0b886bc55830930c65226e600.zip
Reformatting, warning fixes, unsigned char removal
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10618 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 92c234c56..8e66c0e1e 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -293,8 +293,8 @@ int intif_saveregistry(struct map_session_data *sd, int type)
int i,p;
for (p=13,i = 0; i < count; i++) {
if (reg[i].str[0] && reg[i].value != 0) {
- p+= sprintf(WFIFOP(inter_fd,p), "%s", reg[i].str)+1; //We add 1 to consider the '\0' in place.
- p+= sprintf(WFIFOP(inter_fd,p), "%s", reg[i].value)+1;
+ p+= sprintf((char*)WFIFOP(inter_fd,p), "%s", reg[i].str)+1; //We add 1 to consider the '\0' in place.
+ p+= sprintf((char*)WFIFOP(inter_fd,p), "%s", reg[i].value)+1;
}
}
WFIFOW(inter_fd,2)=p;
@@ -971,10 +971,10 @@ int intif_parse_Registers(int fd)
return 0;
}
for(j=0,p=13;j<max && p<RFIFOW(fd,2);j++){
- sscanf(RFIFOP(fd,p), "%31c%n", reg[j].str,&len);
+ sscanf((char*)RFIFOP(fd,p), "%31c%n", reg[j].str,&len);
reg[j].str[len]='\0';
p += len+1; //+1 to skip the '\0' between strings.
- sscanf(RFIFOP(fd,p), "%255c%n", reg[j].value,&len);
+ sscanf((char*)RFIFOP(fd,p), "%255c%n", reg[j].value,&len);
reg[j].value[len]='\0';
p += len+1;
}
@@ -1399,10 +1399,10 @@ int intif_parse_ChangeNameOk(int fd)
case 0: //Players [NOT SUPPORTED YET]
break;
case 1: //Pets
- pet_change_name_ack(sd, RFIFOP(fd,12), RFIFOB(fd,11));
+ pet_change_name_ack(sd, (char*)RFIFOP(fd,12), RFIFOB(fd,11));
break;
case 2: //Hom
- merc_hom_change_name_ack(sd, RFIFOP(fd,12), RFIFOB(fd,11));
+ merc_hom_change_name_ack(sd, (char*)RFIFOP(fd,12), RFIFOB(fd,11));
break;
}
return 0;