is_goodfile: no special verbose mode, always verbose now.
authorJason Self <j@jxself.org>
Tue, 15 Sep 2015 21:43:59 +0000 (14:43 -0700)
committerJason Self <j@jxself.org>
Tue, 15 Sep 2015 21:43:59 +0000 (14:43 -0700)
skein_cli.c

index f2bc2e27caeec23d8e638d239ae83161d20e8c86..23f3e1d0747f655d3f0d2b88025a5dee8b5d13ce 100644 (file)
@@ -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;
                        }