]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Not necessarily better than the cast, but consistent with how other code
authorTim Kientzle <kientzle@gmail.com>
Thu, 10 Mar 2011 06:12:24 +0000 (01:12 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 10 Mar 2011 06:12:24 +0000 (01:12 -0500)
handles this type issue.

SVN-Revision: 3002

libarchive/archive_write_disk.c

index 78feb9ee2c9157ee8b406d689526e5a098c7bacf..ac0092783a764998b570fb6828e271d9ad21b2f5 100644 (file)
@@ -2682,7 +2682,7 @@ set_acl(struct archive_write_disk *a, int fd, const char *name,
        if (entries == 0)
                return (ARCHIVE_OK);
        acl = acl_init(entries);
-       while (archive_acl_next((struct archive *)a, abstract_acl,
+       while (archive_acl_next(&a->archive, abstract_acl,
            ae_requested_type, &ae_type, &ae_permset, &ae_tag, &ae_id,
            &ae_name) == ARCHIVE_OK) {
                acl_create_entry(&acl, &acl_entry);