Skip to content

Commit

Permalink
s/return 0/return EXIT_SUCCESS/, s/return 1/return EXIT_FAILURE/.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Feb 9, 2008
1 parent 8456d20 commit 36dc692
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <sys/time.h>
#include <sys/types.h>
#include <stdlib.h>
#include <event.h>
#include "log.h"
#include "main.h"
Expand All @@ -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)
Expand All @@ -40,7 +41,7 @@ int main(int argc, char **argv)
parser_stop(parser);
fclose(f);
if (error)
return 1;
return EXIT_FAILURE;

event_init();

Expand All @@ -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;
}
}

Expand All @@ -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: */
Expand Down

0 comments on commit 36dc692

Please sign in to comment.