diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-12-28 03:06:27 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-12-28 03:06:27 +0000 |
commit | c3c58ccb3cfd65281679d7a42e0aaaddf78453e6 (patch) | |
tree | 502b6a08dc0f682b4056798c8abd541b624d723a | |
parent | 9a47973065a54cffdc6c5c81b5291add899c7de9 (diff) | |
download | FreeBSD-src-c3c58ccb3cfd65281679d7a42e0aaaddf78453e6.zip FreeBSD-src-c3c58ccb3cfd65281679d7a42e0aaaddf78453e6.tar.gz |
Include limits.h; remove unused variable.
-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? |