]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
archive_entry: use the proper define for mode_t 1354/head
authorSteve Lhomme <robux4@ycbcr.xyz>
Fri, 27 Mar 2020 15:26:07 +0000 (16:26 +0100)
committerSteve Lhomme <robux4@ycbcr.xyz>
Thu, 2 Apr 2020 14:01:45 +0000 (16:01 +0200)
This is the define set in archive_entry.h to use the right mode_t type per
platform. "mode_t" may not be available at all.

This is also how these functions are declared in archive_entry.h

libarchive/archive_entry.c

index a15e98c284256dff04de082982d4ea1c41eeef65..124600c983d831cb78c04549dd162f63c48fb5db 100644 (file)
@@ -353,7 +353,7 @@ archive_entry_devminor(struct archive_entry *entry)
                return minor(entry->ae_stat.aest_dev);
 }
 
-mode_t
+__LA_MODE_T
 archive_entry_filetype(struct archive_entry *entry)
 {
        return (AE_IFMT & entry->acl.mode);
@@ -525,7 +525,7 @@ archive_entry_ino64(struct archive_entry *entry)
        return (entry->ae_stat.aest_ino);
 }
 
-mode_t
+__LA_MODE_T
 archive_entry_mode(struct archive_entry *entry)
 {
        return (entry->acl.mode);
@@ -598,7 +598,7 @@ _archive_entry_pathname_l(struct archive_entry *entry,
        return (archive_mstring_get_mbs_l(&entry->ae_pathname, p, len, sc));
 }
 
-mode_t
+__LA_MODE_T
 archive_entry_perm(struct archive_entry *entry)
 {
        return (~AE_IFMT & entry->acl.mode);