diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2006-07-31 04:57:46 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2006-07-31 04:57:46 +0000 |
| commit | fc1e63e49bc18f683ee3c192414f36572d981909 (patch) | |
| tree | 845bfcfbec71d74ac9e34fee78a30c759f19bb48 /usr.bin | |
| parent | 1f2814b5c3d5fce9c1e696191ad3a95cd1b6cfcb (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/tar/write.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index 19ed1279c27b..26e59f3be0d2 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 *)); |
