mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 06:52:45 +00:00
Include limits.h; remove unused variable.
This commit is contained in:
parent
09bf59d4b9
commit
10f117ebc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201101
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user