]> git.tuebingen.mpg.de Git - adu.git/blobdiff - adu.c
Get rid of the osl code.
[adu.git] / adu.c
diff --git a/adu.c b/adu.c
index b311a386690de22071921950cb7a35b29d3d3b2f..598919a9a73f06b2e41015bd53d60283757c3285 100644 (file)
--- a/adu.c
+++ b/adu.c
@@ -2,14 +2,14 @@
 #include <dirent.h> /* readdir() */
 
 #include "gcc-compat.h"
-#include "osl.h"
 #include "fd.h"
-#include "hash.h"
 #include "string.h"
 #include "error.h"
 
 DEFINE_ERRLIST;
 
+
+
 /** evaluates to 1 if x < y, to -1 if x > y and to 0 if x == y */
 #define NUM_COMPARE(x, y) ((int)((x) < (y)) - (int)((x) > (y)))
 
@@ -414,8 +414,8 @@ int scan_dir(char *dirname)
                m = s.st_mode;
                if (!S_ISREG(m) && !S_ISDIR(m))
                        continue;
-               tmp = make_message("%s/%s", dirname, entry->d_name);
                if (S_ISDIR(m)) {
+                       tmp = make_message("%s/%s", dirname, entry->d_name);
                        ret = scan_dir(tmp);
                        free(tmp);
                        if (ret < 0)