diff options
Diffstat (limited to 'lib/libarchive/archive_read_support_format_ar.c')
-rw-r--r-- | lib/libarchive/archive_read_support_format_ar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/archive_read_support_format_ar.c b/lib/libarchive/archive_read_support_format_ar.c index 0992b27..8b95f22 100644 --- a/lib/libarchive/archive_read_support_format_ar.c +++ b/lib/libarchive/archive_read_support_format_ar.c @@ -40,6 +40,9 @@ __FBSDID("$FreeBSD$"); #ifdef HAVE_STRING_H #include <string.h> #endif +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif #include "archive.h" #include "archive_entry.h" @@ -134,7 +137,6 @@ archive_read_format_ar_cleanup(struct archive_read *a) static int archive_read_format_ar_bid(struct archive_read *a) { - struct ar *ar; const void *h; if (a->archive.archive_format != 0 && @@ -142,8 +144,6 @@ archive_read_format_ar_bid(struct archive_read *a) ARCHIVE_FORMAT_AR) return(0); - ar = (struct ar *)(a->format->data); - /* * Verify the 8-byte file signature. * TODO: Do we need to check more than this? |