scanner.c

changeset 16
bc9a0fefd892
parent 14
ee9333c91dda
child 18
cae1294702aa
--- a/scanner.c	Mon Sep 19 08:11:08 2011 +0200
+++ b/scanner.c	Tue Sep 20 15:19:28 2011 +0200
@@ -44,10 +44,6 @@
 
       // Count lines
       lines = 0;
-      /* char filename[(1+strlen(currdir)+strlen(entry->d_name))];
-      strcpy(filename, currdir);
-      strncat(filename, &settings->fileSeparator, 1);
-      strcat(filename, entry->d_name); */
       if (testSuffix(filename, settings)) {
         FILE *file = fopen(filename, "r");
         if (file == NULL) {
@@ -72,8 +68,7 @@
         #endif /* _WIN32 */
 
         lineSum += lines;
-      }
-      else {
+      } else {
         if (!settings->matchesOnly) {
           // Print hint
           #ifdef _WIN32

mercurial