summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2006-07-31 04:57:46 +0000
committerkientzle <kientzle@FreeBSD.org>2006-07-31 04:57:46 +0000
commit1ac17adabf260fee70b38afd8bb2c0fd23c3ec2d (patch)
tree845bfcfbec71d74ac9e34fee78a30c759f19bb48 /usr.bin/tar
parent5fe81da396fa8e09d9fd94f02c518b3b083e4cfb (diff)
downloadFreeBSD-src-1ac17adabf260fee70b38afd8bb2c0fd23c3ec2d.zip
FreeBSD-src-1ac17adabf260fee70b38afd8bb2c0fd23c3ec2d.tar.gz
Remove two unused variables.
Thanks to: Stefan Farfeleder
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/write.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index 19ed127..26e59f3 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -276,7 +276,6 @@ tar_mode_u(struct bsdtar *bsdtar)
off_t end_offset;
struct archive *a;
struct archive_entry *entry;
- const char *filename;
int format;
struct archive_dir_entry *p;
struct archive_dir archive_dir;
@@ -284,7 +283,6 @@ tar_mode_u(struct bsdtar *bsdtar)
bsdtar->archive_dir = &archive_dir;
memset(&archive_dir, 0, sizeof(archive_dir));
- filename = NULL;
format = ARCHIVE_FORMAT_TAR_PAX_RESTRICTED;
/* Sanity-test some arguments and the file. */
@@ -906,13 +904,9 @@ lookup_hardlink(struct bsdtar *bsdtar, struct archive_entry *entry,
/* If the links cache is getting too full, enlarge the hash table. */
if (links_cache->number_entries > links_cache->number_buckets * 2)
{
- int count;
-
new_size = links_cache->number_buckets * 2;
new_buckets = malloc(new_size * sizeof(struct links_entry *));
- count = 0;
-
if (new_buckets != NULL) {
memset(new_buckets, 0,
new_size * sizeof(struct links_entry *));
OpenPOWER on IntegriCloud