meowsum.git

commit e272fe2499bba2b333b83d2a864049886f6239d4

Author: Adam <git@apiote.tk>

clean source code

 meowsum.c | 5 +----


diff --git a/meowsum.c b/meowsum.c
index 20b12ef8329880ac886fd637423193969790e6ed..c93b4311cd64d257815bed7eb9f6b589880e4d4c 100644
--- a/meowsum.c
+++ b/meowsum.c
@@ -11,7 +11,6 @@ #include 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
 
@@ -200,7 +199,7 @@         }
       }
 
       path = malloc(line_size * sizeof(char));
-      sscanf(line, "%s %ld %s", expected_hex_hash, &expected_size, path);
+      sscanf(line, "%s %ld %s", expected_hex_hash, &expected_size, path); // fixme if empty or malformed
       hash_size = strlen(expected_hex_hash) / 2 * 8;
 
       if (strcmp("-", path) == 0) {
@@ -254,11 +253,9 @@     fclose(file);
   }
   return result;
 }
-
 int main(int argc, char *argv[]) {
   int hash_size = HASH_SIZE, mode = MODE_SUM, first_file_index = -1;
   bool quiet = false, strict_error = false;
-  int exit_status = 0;
 
   if (argc == 1) {
     print_usage();