From 36dc692ab37b923e8b786648b58715e6d30d975e Mon Sep 17 00:00:00 2001 From: Leonid Evdokimov Date: Sun, 10 Feb 2008 00:59:00 +0600 Subject: [PATCH] s/return 0/return EXIT_SUCCESS/, s/return 1/return EXIT_FAILURE/. --- main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 176c6ac5..81ee18bf 100644 --- a/main.c +++ b/main.c @@ -2,6 +2,7 @@ #include #include +#include #include #include "log.h" #include "main.h" @@ -24,13 +25,13 @@ int main(int argc, char **argv) FILE *f = fopen("redsocks.conf", "r"); if (!f) { perror("Unable to open config file"); - return 1; + return EXIT_FAILURE; } parser_context* parser = parser_start(f, NULL); if (!parser) { perror("Not enough memory for parser"); - return 1; + return EXIT_FAILURE; } FOREACH(ss, subsystems) @@ -40,7 +41,7 @@ int main(int argc, char **argv) parser_stop(parser); fclose(f); if (error) - return 1; + return EXIT_FAILURE; event_init(); @@ -52,7 +53,7 @@ int main(int argc, char **argv) for (--ss; ss >= subsystems; ss--) if ((*ss)->fini) (*ss)->fini(); - return 1; + return EXIT_FAILURE; } } @@ -63,7 +64,7 @@ int main(int argc, char **argv) FOREACH_REV(ss, subsystems) if ((*ss)->fini) (*ss)->fini(); - return 0; + return EXIT_SUCCESS; } /* vim:set tabstop=4 softtabstop=4 shiftwidth=4: */