summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/int_party.c2
-rw-r--r--src/char_sql/inter.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c
index fd1f0c37c..f5afb1777 100644
--- a/src/char_sql/int_party.c
+++ b/src/char_sql/int_party.c
@@ -273,7 +273,7 @@ int inter_party_sql_init(void)
party_pt = (struct party_data*)aCalloc(sizeof(struct party_data), 1);
if (!party_pt) {
ShowFatalError("inter_party_sql_init: Out of Memory!\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
/* Uncomment the following if you want to do a party_db cleanup (remove parties with no members) on startup.[Skotlex]
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c
index 201605bd6..ab03e102b 100644
--- a/src/char_sql/inter.c
+++ b/src/char_sql/inter.c
@@ -356,7 +356,7 @@ int inter_init_sql(const char *file)
{
Sql_ShowDebug(sql_handle);
Sql_Free(sql_handle);
- exit(1);
+ exit(EXIT_FAILURE);
}
#ifndef TXT_SQL_CONVERT
else if (inter_sql_test()) {
@@ -371,7 +371,7 @@ int inter_init_sql(const char *file)
Sql_ShowDebug(lsql_handle);
Sql_Free(lsql_handle);
Sql_Free(sql_handle);
- exit(1);
+ exit(EXIT_FAILURE);
}
else
{
@@ -430,7 +430,7 @@ int inter_sql_test (void)
if( lsql_handle )
Sql_Free(lsql_handle);
Sql_Free(sql_handle);
- exit(1);
+ exit(EXIT_FAILURE);
}
}