summaryrefslogtreecommitdiff
path: root/src/char/int_guild.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-17 17:20:01 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-17 17:20:01 +0000
commita4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d (patch)
tree75dde2edb2807cb44b6ea17cd2f405ad66399716 /src/char/int_guild.c
parent8982c119eaaa031bbdd70798a077c14b5bc183c1 (diff)
downloadhercules-a4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d.tar.gz
hercules-a4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d.tar.bz2
hercules-a4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d.tar.xz
hercules-a4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d.zip
Using predefined constants as parameters to the exit() function.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11501 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/int_guild.c')
-rw-r--r--src/char/int_guild.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 52514692c..2bf3e0a41 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -391,7 +391,7 @@ int inter_guild_init() {
g = (struct guild *) aCalloc(sizeof(struct guild), 1);
if(g == NULL){
ShowFatalError("int_guild: out of memory!\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
// memset(g, 0, sizeof(struct guild)); not needed...
if (inter_guild_fromstr(line, g) == 0 && g->guild_id > 0) {
@@ -420,7 +420,7 @@ int inter_guild_init() {
gc = (struct guild_castle *) aCalloc(sizeof(struct guild_castle), 1);
if(gc == NULL){
ShowFatalError("int_guild: out of memory!\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
// memset(gc, 0, sizeof(struct guild_castle)); No need...
if (inter_guildcastle_fromstr(line, gc) == 0) {
@@ -439,7 +439,7 @@ int inter_guild_init() {
gc = (struct guild_castle *) aCalloc(sizeof(struct guild_castle), 1);
if (gc == NULL) {
ShowFatalError("int_guild: out of memory!\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
gc->castle_id = i;
idb_put(castle_db, gc->castle_id, gc);
@@ -979,7 +979,7 @@ int mapif_parse_CreateGuild(int fd, int account_id, char *name, struct guild_mem
if (g == NULL) {
ShowFatalError("int_guild: CreateGuild: out of memory !\n");
mapif_guild_created(fd, account_id, NULL);
- exit(0);
+ exit(EXIT_FAILURE);
}
// memset(g, 0, sizeof(struct guild)); Meh...
g->guild_id = guild_newid++;