diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-17 17:20:01 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-17 17:20:01 +0000 |
commit | a4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d (patch) | |
tree | 75dde2edb2807cb44b6ea17cd2f405ad66399716 /src/char/char.c | |
parent | 8982c119eaaa031bbdd70798a077c14b5bc183c1 (diff) | |
download | hercules-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/char.c')
-rw-r--r-- | src/char/char.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c index d56c79b28..c99c1e3c4 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1003,7 +1003,7 @@ int mmo_char_init(void) if (!char_dat) { ShowFatalError("Out of memory: mmo_char_init (realloc of char_dat).\n"); char_log("Out of memory: mmo_char_init (realloc of char_dat).\n"); - exit(1); + exit(EXIT_FAILURE); } } @@ -1227,7 +1227,7 @@ int make_new_char(struct char_session_data* sd, char* name_, int str, int agi, i if (!char_dat) { ShowFatalError("Out of memory: make_new_char (realloc of char_dat).\n"); char_log("Out of memory: make_new_char (realloc of char_dat).\n"); - exit(1); + exit(EXIT_FAILURE); } } @@ -1993,7 +1993,7 @@ int parse_fromlogin(int fd) ShowError("The server communication passwords (default s1/p1) are probably invalid.\n"); ShowInfo("Also, please make sure your accounts file (default: accounts.txt) has those values present.\n"); ShowInfo("The communication passwords can be changed in map_athena.conf and char_athena.conf\n"); - //exit(1); //fixed for server shutdown. + //exit(EXIT_FAILURE); //fixed for server shutdown. } else { ShowStatus("Connected to login-server (connection #%d).\n", fd); |