svn commit: r201101 - head/lib/libarchive
Tim Kientzle
kientzle at FreeBSD.org
Mon Dec 28 03:06:27 UTC 2009
Author: kientzle
Date: Mon Dec 28 03:06:27 2009
New Revision: 201101
URL: http://svn.freebsd.org/changeset/base/201101
Log:
Include limits.h; remove unused variable.
Modified:
head/lib/libarchive/archive_read_support_format_ar.c
Modified: head/lib/libarchive/archive_read_support_format_ar.c
==============================================================================
--- head/lib/libarchive/archive_read_support_format_ar.c Mon Dec 28 03:05:31 2009 (r201100)
+++ head/lib/libarchive/archive_read_support_format_ar.c Mon Dec 28 03:06:27 2009 (r201101)
@@ -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 ar
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 archiv
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?
More information about the svn-src-all
mailing list