1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

Remove pathlen argument from write_entry function. It has never been used.

Approved by:	kientzle
MFC after:	3 days
This commit is contained in:
Colin Percival 2007-03-17 19:18:29 +00:00
parent 37374fc852
commit fa21517ed8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167666

View File

@ -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();