include <sys/stat.h> instead of defining a 'struct stat'; this prevents
[util-vserver.git] / util-vserver / src / vunify.h
index b9d535a..a6e1072 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "lib_internal/matchlist.h"
 
+#include <sys/stat.h>
+
 struct dirent;
 struct WalkdownInfo
 {
@@ -51,15 +53,11 @@ struct Arguments {
     bool                               do_renew;
 };
 
-struct stat;
-
-static void    visitDirEntry(struct dirent const *) NONNULL((1));
-static void    visitDir(char const *, struct stat const *) NONNULL((1));
 static bool    checkFstat(struct MatchList const * const,
                           PathInfo const * const,
                           PathInfo const * const,
                           struct stat const ** const, struct stat * const,
-                          struct stat *) NONNULL((1,2,3,4,5,6,7));
+                          struct stat *) NONNULL((1,2,3,4,5,6));
 
 static struct MatchList const *
 checkDirEntry(PathInfo const *,
@@ -67,7 +65,6 @@ checkDirEntry(PathInfo const *,
              bool *, struct stat *, struct stat *) NONNULL((1,2,3,4,5));
 
 static bool    updateSkipDepth(PathInfo const *, bool) NONNULL((1));
-static void    EsafeChdir(char const *, struct stat const *)  NONNULL((1,2));
 static bool    doit(struct MatchList const *,
                     PathInfo const *, struct stat const *,
                     char const *dst_path, struct stat const *) NONNULL((1,2,3));