summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2007-03-17 19:18:29 +0000
committercperciva <cperciva@FreeBSD.org>2007-03-17 19:18:29 +0000
commitaece76cbcdf89b80031f0e8fec536f8df7abc724 (patch)
tree655cf91e68aa4ace14f04b9fb1e5efeca1a086ae /usr.bin/tar
parentd43d58ff4578f356c44c4ad57ff2d4c6b2b99a50 (diff)
downloadFreeBSD-src-aece76cbcdf89b80031f0e8fec536f8df7abc724.zip
FreeBSD-src-aece76cbcdf89b80031f0e8fec536f8df7abc724.tar.gz
Remove pathlen argument from write_entry function. It has never been used.
Approved by: kientzle MFC after: 3 days
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/write.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index 476730d..267eac4 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -155,7 +155,7 @@ static void test_for_append(struct bsdtar *);
static void write_archive(struct archive *, struct bsdtar *);
static void write_entry(struct bsdtar *, struct archive *,
const struct stat *, const char *pathname,
- unsigned pathlen, const char *accpath);
+ const char *accpath);
static int write_file_data(struct bsdtar *, struct archive *,
int fd);
static void write_hierarchy(struct bsdtar *, struct archive *,
@@ -718,7 +718,6 @@ write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path)
* pathname editing and newness testing.
*/
write_entry(bsdtar, a, lst, name,
- tree_current_pathlen(tree),
tree_current_access_path(tree));
}
tree_close(tree);
@@ -729,7 +728,7 @@ write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path)
*/
static void
write_entry(struct bsdtar *bsdtar, struct archive *a, const struct stat *st,
- const char *pathname, unsigned pathlen, const char *accpath)
+ const char *pathname, const char *accpath)
{
struct archive_entry *entry;
int e;
@@ -740,8 +739,6 @@ write_entry(struct bsdtar *bsdtar, struct archive *a, const struct stat *st,
#endif
static char linkbuffer[PATH_MAX+1];
- (void)pathlen; /* UNUSED */
-
fd = -1;
entry = archive_entry_new();
OpenPOWER on IntegriCloud