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/tool | |
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/tool')
-rw-r--r-- | src/tool/grfio.c | 4 | ||||
-rw-r--r-- | src/tool/mapcache.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tool/grfio.c b/src/tool/grfio.c index 247395262..26cfb636f 100644 --- a/src/tool/grfio.c +++ b/src/tool/grfio.c @@ -570,7 +570,7 @@ static int grfio_entryread(char* grfname, int gentry) if (strlen(fname) > sizeof(aentry.fn) - 1) { printf("GRF file name %s is too long\n", fname); free(grf_filelist); - exit(1); + exit(EXIT_FAILURE); } srclen = 0; if ((period_ptr = strrchr(fname, '.')) != NULL) { @@ -641,7 +641,7 @@ static int grfio_entryread(char* grfname, int gentry) if (strlen(fname) > sizeof(aentry.fn)-1) { printf("GRF file name %s is too long\n", fname); free(grf_filelist); - exit(1); + exit(EXIT_FAILURE); } ofs2 = ofs + (int)strlen(fname)+1; type = grf_filelist[ofs2+12]; diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c index 095245da4..b204cf7c7 100644 --- a/src/tool/mapcache.c +++ b/src/tool/mapcache.c @@ -274,7 +274,7 @@ int main(int argc, char *argv[]) map_cache_fp = fopen(map_cache_file, "r+b"); if(map_cache_fp == NULL) { printf("Failure when opening map cache file %s\n", map_cache_file); - exit(1); + exit(EXIT_FAILURE); } // Open the map list @@ -282,7 +282,7 @@ int main(int argc, char *argv[]) list = fopen(map_list_file, "r"); if(list == NULL) { printf("Failure when opening maps list file %s\n", map_list_file); - exit(2); + exit(EXIT_FAILURE); } // Initialize the main header |