]> arthur.barton.de Git - netatalk.git/blobdiff - test/afpd/subtests.c
globals.h has moved
[netatalk.git] / test / afpd / subtests.c
index d606be80d4e8846302d0df339a0815506491c1b7..cdc4f58b90d3202718802d1e009b6830a1c13ba8 100644 (file)
@@ -1,5 +1,4 @@
 /*
-  $Id: subtests.c,v 1.1.2.1 2010-02-01 10:56:08 franklahm Exp $
   Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
 #include <atalk/directory.h>
 #include <atalk/queue.h>
 #include <atalk/bstrlib.h>
+#include <atalk/globals.h>
 
 #include "directory.h"
 #include "dircache.h"
 #include "hash.h"
-#include "globals.h"
 #include "afp_config.h"
 #include "volume.h"
 
@@ -48,10 +47,10 @@ int test001_add_x_dirs(const struct vol *vol, cnid_t start, cnid_t end)
     char dirname[20];
     while (start++ < end) {
         sprintf(dirname, "dir%04u", start);
-        dir = dir_new(dirname, dirname, vol, DIRDID_ROOT, htonl(start), bfromcstr(vol->v_path));
+        dir = dir_new(dirname, dirname, vol, DIRDID_ROOT, htonl(start), bfromcstr(vol->v_path), 0);
         if (dir == NULL)
             return -1;
-        if (dircache_add(dir) != 0)
+        if (dircache_add(vol, dir) != 0)
             return -1;
     }