Cleanup of code layout only
[mmh] / sbr / crawl_folders.c
index 0693a21..59ec952 100644 (file)
@@ -12,8 +12,8 @@
 
 struct crawl_context {
        int max;    /*
-                   ** how many folders we currently can hold in the array
-                   ** `folders', increased by CRAWL_NUMFOLDERS at a time
+                   ** number of folders we can hold in the folders array;
+                   ** increased by CRAWL_NUMFOLDERS at a time
                    */
        int total;  /* how many `folders' actually has */
        char **folders;  /* the array of folders */
@@ -84,7 +84,8 @@ add_children(char *name, struct crawl_context *crawl)
                        continue;
                }
 #endif
-               if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) {
+               if (strcmp(dp->d_name, ".")==0 ||
+                               strcmp(dp->d_name, "..")==0) {
                        continue;
                }
                child = concat(prefix, dp->d_name, (void *)NULL);