Use EXIT_SUCCESS and EXIT_FAILURE more consistently.

This commit is contained in:
Todd C. Miller
2020-02-08 12:43:00 -07:00
parent c5afbf00fc
commit ac61b5655d
29 changed files with 58 additions and 58 deletions

View File

@@ -41,7 +41,7 @@ static void
usage(void)
{
fprintf(stderr, "usage: %s plugin.so symbols_file\n", getprogname());
exit(1);
exit(EXIT_FAILURE);
}
int

View File

@@ -46,7 +46,7 @@ main(int argc, char *argv[])
if (argc > 1) {
if ((fp = fopen(argv[1], "r")) == NULL) {
perror(argv[1]);
exit(1);
exit(EXIT_FAILURE);
}
}

View File

@@ -52,7 +52,7 @@ static void
usage(void)
{
fprintf(stderr, "usage: %s pathname\n", getprogname());
exit(1);
exit(EXIT_FAILURE);
}
static int

View File

@@ -44,7 +44,7 @@ static void
usage(void)
{
fprintf(stderr, "usage: %s inputfile\n", getprogname());
exit(1);
exit(EXIT_FAILURE);
}
int

View File

@@ -77,7 +77,7 @@ static void
usage(void)
{
fprintf(stderr, "usage: %s datafile\n", getprogname());
exit(1);
exit(EXIT_FAILURE);
}
int