From 32da100ff5e5d51cff3583fda8e2c79cf9080e62 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 27 Mar 2020 16:26:07 +0100 Subject: [PATCH] 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 --- libarchive/archive_entry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2