From: Steve Lhomme Date: Fri, 27 Mar 2020 15:26:07 +0000 (+0100) Subject: archive_entry: use the proper define for mode_t X-Git-Tag: v3.4.3~21^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1354%2Fhead;p=thirdparty%2Flibarchive.git archive_entry: use the proper define for mode_t 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 --- diff --git a/libarchive/archive_entry.c b/libarchive/archive_entry.c index a15e98c28..124600c98 100644 --- a/libarchive/archive_entry.c +++ b/libarchive/archive_entry.c @@ -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);