From a4c3bb6153b6fd1a8d54abde6f7d9ecd593a4e4d Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 17 Oct 2007 17:20:01 +0000 Subject: 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 --- src/tool/grfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool/grfio.c') 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]; -- cgit v1.2.3-60-g2f50