svn commit: r201107 - head/lib/libarchive

Tim Kientzle kientzle at FreeBSD.org
Mon Dec 28 03:25:33 UTC 2009


Author: kientzle
Date: Mon Dec 28 03:25:33 2009
New Revision: 201107
URL: http://svn.freebsd.org/changeset/base/201107

Log:
  Remove an unused variable and an unreachable statement.

Modified:
  head/lib/libarchive/archive_read_support_format_raw.c

Modified: head/lib/libarchive/archive_read_support_format_raw.c
==============================================================================
--- head/lib/libarchive/archive_read_support_format_raw.c	Mon Dec 28 03:24:56 2009	(r201106)
+++ head/lib/libarchive/archive_read_support_format_raw.c	Mon Dec 28 03:25:33 2009	(r201107)
@@ -89,9 +89,8 @@ archive_read_support_format_raw(struct a
 static int
 archive_read_format_raw_bid(struct archive_read *a)
 {
-	const char *p;
 
-	if ((p = __archive_read_ahead(a, 1, NULL)) == NULL)
+	if (__archive_read_ahead(a, 1, NULL) == NULL)
 		return (-1);
 	return (1);
 }
@@ -149,7 +148,6 @@ archive_read_format_raw_read_data(struct
 		*offset = info->offset;
 		return (avail);
 	}
-	return (ARCHIVE_OK);
 }
 
 static int


More information about the svn-src-head mailing list