]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Use the proper exit constant instead of the hard coded numérical value.
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Oct 2015 14:09:39 +0000 (16:09 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Oct 2015 14:09:39 +0000 (16:09 +0200)
readlog.c

index 2f70acbded194644f34995ba0b404b75d7253389..d81032e79315a77a4bf787ede68741d38d19ff6d 100644 (file)
--- a/readlog.c
+++ b/readlog.c
@@ -688,7 +688,7 @@ static void ReadOneLogFile(struct ReadLogDataStruct *Filter,const char *arq)
                        }
                        if ((ufile->file = MY_FOPEN (tmp3, "a")) == NULL) {
                                debuga(__FILE__,__LINE__,_("(log) Cannot open temporary file %s: %s\n"), tmp3, strerror(errno));
-                               exit (1);
+                               exit(EXIT_FAILURE);
                        }
                }