summaryrefslogtreecommitdiff
path: root/src/map/clif.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/map/clif.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/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 02bfe2e95..58db07b2a 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11776,7 +11776,7 @@ static int packetdb_readdb(void)
sprintf(line, "%s/packet_db.txt", db_path);
if( (fp=fopen(line,"r"))==NULL ){
ShowFatalError("can't read %s\n", line);
- exit(1);
+ exit(EXIT_FAILURE);
}
clif_config.packet_db_ver = MAX_PACKET_VER;
@@ -11886,7 +11886,7 @@ static int packetdb_readdb(void)
if(str[3]==NULL){
ShowError("packet_db: packet error\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
for(j=0,p2=str[3];p2;j++){
str2[j]=p2;
@@ -11928,7 +11928,7 @@ int do_init_clif(void)
set_defaultparse(clif_parse);
if (!make_listen_bind(bind_ip,map_port)) {
ShowFatalError("can't bind game port\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
add_timer_func_list(clif_waitclose, "clif_waitclose");