From 46afaed6555abf5cfdb979e7b1e0b3a619ee36ae Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Sat, 9 Oct 2010 01:57:04 +0000 Subject: Replaced all nullpo_retr() calls which returned 0 with nullpo_ret() calls. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14414 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 10 +- src/map/battle.c | 12 +- src/map/battleground.c | 6 +- src/map/chat.c | 16 +-- src/map/clif.c | 306 ++++++++++++++++++++++++------------------------- src/map/guild.c | 56 ++++----- src/map/homunculus.c | 14 +-- src/map/intif.c | 8 +- src/map/itemdb.c | 4 +- src/map/log.c | 14 +-- src/map/mail.c | 6 +- src/map/map.c | 14 +-- src/map/mob.c | 54 ++++----- src/map/npc.c | 38 +++--- src/map/party.c | 14 +-- src/map/pc.c | 154 ++++++++++++------------- src/map/pet.c | 16 +-- src/map/quest.c | 4 +- src/map/skill.c | 134 +++++++++++----------- src/map/status.c | 26 ++--- src/map/storage.c | 34 +++--- src/map/unit.c | 44 +++---- 22 files changed, 492 insertions(+), 492 deletions(-) (limited to 'src') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index eb1632b26..9fe589e73 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2569,7 +2569,7 @@ static int atkillmonster_sub(struct block_list *bl, va_list ap) struct mob_data *md; int flag; - nullpo_retr(0, md=(struct mob_data *)bl); + nullpo_ret(md=(struct mob_data *)bl); flag = va_arg(ap, int); if (md->guardian_data) @@ -6338,7 +6338,7 @@ int atcommand_mobsearch(const int fd, struct map_session_data* sd, const char* c *------------------------------------------*/ static int atcommand_cleanmap_sub(struct block_list *bl, va_list ap) { - nullpo_retr(0, bl); + nullpo_ret(bl); map_clearflooritem(bl->id); return 0; @@ -6860,7 +6860,7 @@ int atcommand_misceffect(const int fd, struct map_session_data* sd, const char* *------------------------------------------*/ int atcommand_mail(const int fd, struct map_session_data* sd, const char* command, const char* message) { - nullpo_retr(0,sd); + nullpo_ret(sd); #ifndef TXT_ONLY mail_openmail(sd); #endif @@ -7576,7 +7576,7 @@ static int atcommand_mutearea_sub(struct block_list *bl,va_list ap) int atcommand_mutearea(const int fd, struct map_session_data* sd, const char* command, const char* message) { int time; - nullpo_retr(0, sd); + nullpo_ret(sd); if (!message || !*message) { clif_displaymessage(fd, "Please, enter a time in minutes (usage: @mutearea/@stfu