summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-24 16:55:10 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-24 16:55:10 +0000
commite38158dfce4969609ab4957446d1d9a631abbfb5 (patch)
tree0b223240cd1fefb86026a273029a0f176f3d2da4 /src/map/clif.c
parent817a048b554ed05fda836a9b55e0dc9a816334b7 (diff)
downloadhercules-e38158dfce4969609ab4957446d1d9a631abbfb5.tar.gz
hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.tar.bz2
hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.tar.xz
hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.zip
More G++ work
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@976 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7b088068f..d15fdf3a1 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7343,7 +7343,8 @@ void clif_parse_WantToConnection(int fd, struct map_session_data *sd)
if (sd != 0)
clif_setwaitclose(sd->fd); // Set session to EOF
} else {
- sd = (struct map_session_data*)session[fd]->session_data = (struct map_session_data*)aCalloc(1, sizeof(struct map_session_data));
+ sd = (struct map_session_data*)aCalloc(1, sizeof(struct map_session_data));
+ session[fd]->session_data = sd;
sd->fd = fd;
if (IS_PACKET_DB_VER(cmd)) {
@@ -10392,7 +10393,7 @@ void clif_parse_debug(int fd,struct map_session_data *sd)
}
// functions list
-static void (*clif_parse_func_table[MAX_PACKET_DB])() = {
+static void (*clif_parse_func_table[MAX_PACKET_DB])(int, struct map_session_data *) = {
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
@@ -10745,7 +10746,7 @@ static int packetdb_readdb(void)
char *str[32],*p,*str2[32],*p2,w1[24],w2[24];
struct {
- void (*func)();
+ void (*func)(int, struct map_session_data *);
char *name;
} clif_parse_func[]={
{clif_parse_WantToConnection,"wanttoconnection"},