Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2009 03:06:27 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201101 - head/lib/libarchive
Message-ID:  <200912280306.nBS36RfV077134@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912280306.nBS36RfV077134>