diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-04-03 21:37:59 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-04-03 21:37:59 -0700 |
commit | 721265e0fe2bd38bafd3a09a0e574e10c89bd345 (patch) | |
tree | 1aa6ff398094c81d490b7284e4cb9c8e0fde7e93 /src/map/chat.c | |
parent | 4095d5726ebabc663a6d5397d003773ee652818a (diff) | |
download | tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.tar.gz tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.tar.bz2 tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.tar.xz tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.zip |
Fix some more compiler warnings
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index 00aadea..ccb75df 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -28,7 +28,7 @@ int chat_createchat (struct map_session_data *sd, int limit, int pub, nullpo_retr (0, sd); - cd = calloc (1, sizeof (struct chat_data)); + CREATE(cd, struct chat_data, 1); cd->limit = limit; cd->pub = pub; @@ -279,7 +279,7 @@ int chat_createnpcchat (struct npc_data *nd, int limit, int pub, int trigger, nullpo_retr (1, nd); - cd = calloc (1, sizeof (struct chat_data)); + CREATE (cd, struct chat_data, 1); cd->limit = cd->trigger = limit; if (trigger > 0) |