Exit with EXIT_SUCCESS/EXIT_FAILURE instead of 0 and 1

Fixed for consistency purposes.
This commit is contained in:
sin
2013-10-07 16:41:55 +01:00
parent ac033652fe
commit b5a511dacf
52 changed files with 67 additions and 60 deletions

5
stat.c
View File

@@ -5,6 +5,7 @@
#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "util.h"
@@ -20,7 +21,7 @@ int
main(int argc, char *argv[])
{
struct stat st;
int i, ret = 0;
int i, ret = EXIT_SUCCESS;
int Lflag = 0;
int (*fn)(const char *, struct stat *);
@@ -44,7 +45,7 @@ main(int argc, char *argv[])
fprintf(stderr, "%s %s: ", Lflag ? "stat" : "lstat",
argv[i]);
perror(NULL);
ret = 1;
ret = EXIT_FAILURE;
continue;
}
show_stat(argv[i], &st);