]> diplodocus.org Git - nmh/blobdiff - sbr/crawl_folders.c
folder_realloc.c: Move interface to own file.
[nmh] / sbr / crawl_folders.c
index e7ab5e372424bf609b95df11511fbf53244c1a8e..9f1327ce038ef81563dbcc80bb4b03f15329410e 100644 (file)
@@ -5,9 +5,10 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/crawl_folders.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "error.h"
+#include "h/crawl_folders.h"
+#include "h/utils.h"
 
 struct crawl_context {
     int max;                   /* how many folders we currently can hold in
@@ -64,7 +65,7 @@ add_children (char *name, struct crawl_context *crawl)
     if (strcmp (name, ".") == 0) {
        prefix = mh_xstrdup("");
     } else {
-       prefix = concat (name, "/", (void *)NULL);
+       prefix = concat(name, "/", NULL);
     }
 
     while ((dp = readdir (dd))) {
@@ -81,7 +82,7 @@ add_children (char *name, struct crawl_context *crawl)
        if (!strcmp (dp->d_name, ".") || !strcmp (dp->d_name, "..")) {
            continue;
        }
-       child = concat (prefix, dp->d_name, (void *)NULL);
+       child = concat(prefix, dp->d_name, NULL);
        /* If we have no d_type or d_type is DT_LNK or DT_UNKNOWN, stat the
         * child to see what it is. */
        if (child_is_folder == -1) {