From 5a4842dfbd9440b46ceaf9a3266810c458cece0f Mon Sep 17 00:00:00 2001 From: Jason Self Date: Tue, 15 Sep 2015 14:43:59 -0700 Subject: [PATCH] is_goodfile: no special verbose mode, always verbose now. --- skein_cli.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/skein_cli.c b/skein_cli.c index f2bc2e2..23f3e1d 100644 --- a/skein_cli.c +++ b/skein_cli.c @@ -419,7 +419,7 @@ void print_usage(void) exit(1); } -int is_goodfile(const char filename[], int verbose) +int is_goodfile(const char filename[]) { if (!strcmp(filename, "-")) return 1; @@ -427,7 +427,7 @@ int is_goodfile(const char filename[], int verbose) struct stat s; if (stat(filename, &s) < 0) { - if (verbose) fprintf(stderr, "skein%dsum: %s: no such file or directory\n", hashbitlen, filename); + fprintf(stderr, "skein%dsum: %s: no such file or directory\n", hashbitlen, filename); return 0; } @@ -435,7 +435,7 @@ int is_goodfile(const char filename[], int verbose) return 1; if (s.st_mode & S_IFDIR) { - if (verbose) fprintf(stderr, "skein%dsum: %s: is a directory\n", hashbitlen, filename); + fprintf(stderr, "skein%dsum: %s: is a directory\n", hashbitlen, filename); return 0; } @@ -503,7 +503,7 @@ int main(int argc, char** argv) for (file_index = first_file; file_index < argc; file_index++) { const char *filename = argv[file_index]; - if (!is_goodfile(filename, 1)) { + if (!is_goodfile(filename)) { errorFound++; continue; } @@ -540,7 +540,7 @@ int main(int argc, char** argv) for (file_index = first_file; file_index < argc; file_index++) { const char *filename = argv[file_index]; - if (!is_goodfile(filename, 1)) { + if (!is_goodfile(filename)) { errorFound++; continue; } -- 2.31.1