]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Do not treat archive_read_disk_entry_setup_acls() as static
authorMartin Matuska <martin@matuska.org>
Thu, 16 Mar 2017 11:25:53 +0000 (12:25 +0100)
committerMartin Matuska <martin@matuska.org>
Thu, 16 Mar 2017 11:26:20 +0000 (12:26 +0100)
libarchive/archive_read_disk_entry_from_file.c
libarchive/archive_read_disk_private.h

index 899cb0626209c09784af3ff7026658b385a27074..181698a88d68a6f9e525fe4b09efc22e9896eff4 100644 (file)
@@ -101,10 +101,6 @@ __FBSDID("$FreeBSD");
 #define O_CLOEXEC      0
 #endif
 
-#ifndef ARCHIVE_ACL_SUPPORT
-static int archive_read_disk_entry_setup_acls(struct archive_read_disk *,
-struct archive_entry *, int *fd);
-#endif
 static int setup_mac_metadata(struct archive_read_disk *,
     struct archive_entry *, int *fd);
 static int setup_xattrs(struct archive_read_disk *,
@@ -116,6 +112,18 @@ static int setup_sparse_fiemap(struct archive_read_disk *,
     struct archive_entry *, int *fd);
 #endif
 
+#if !ARCHIVE_ACL_SUPPORT
+int
+archive_read_disk_entry_setup_acls(struct archive_read_disk *a,
+    struct archive_entry *entry, int *fd)
+{
+       (void)a;      /* UNUSED */
+       (void)entry;  /* UNUSED */
+       (void)fd;     /* UNUSED */
+       return (ARCHIVE_OK);
+}
+#endif
+
 int
 archive_read_disk_entry_from_file(struct archive *_a,
     struct archive_entry *entry,
@@ -475,18 +483,6 @@ setup_xattr(struct archive_read_disk *a,
        return (ARCHIVE_OK);
 }
 
-#ifndef ARCHIVE_ACL_SUPPORT
-static int
-archive_read_disk_entry_setup_acls(struct archive_read_disk *a,
-    struct archive_entry *entry, int *fd)
-{
-       (void)a;      /* UNUSED */
-       (void)entry;  /* UNUSED */
-       (void)fd;     /* UNUSED */
-       return (ARCHIVE_OK);
-}
-#endif
-
 static int
 setup_xattrs(struct archive_read_disk *a,
     struct archive_entry *entry, int *fd)
index d434d3979259c4c496006c048fc83793df66cbc3..4996e161edc4370c049eca9cffa029d7c529fe5e 100644 (file)
@@ -88,10 +88,8 @@ struct archive_read_disk {
        void    *excluded_cb_data;
 };
 
-#if ARCHIVE_ACL_SUPPORT
 int
 archive_read_disk_entry_setup_acls(struct archive_read_disk *,
     struct archive_entry *, int *);
-#endif
 
 #endif