]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove unneeded code in archive_write_set_format_cpio_newc.c
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 15 May 2011 15:20:17 +0000 (11:20 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 15 May 2011 15:20:17 +0000 (11:20 -0400)
SVN-Revision: 3334

libarchive/archive_write_set_format_cpio_newc.c

index 497228d2d3b0cd8bb0bed5d3a8cf47b6b86bbd3d..2a4aa01ed43a84fea64973c86e8910bd13dfb029 100644 (file)
@@ -171,7 +171,6 @@ get_sconv(struct archive_write *a)
 static int
 archive_write_newc_header(struct archive_write *a, struct archive_entry *entry)
 {
-       struct cpio *cpio;
        const char *path;
        size_t len;
 
@@ -180,7 +179,6 @@ archive_write_newc_header(struct archive_write *a, struct archive_entry *entry)
                return (ARCHIVE_FAILED);
        }
 
-       cpio = (struct cpio *)a->format_data;
        (void)archive_entry_pathname_l(entry, &path, &len, get_sconv(a));
        if (len == 0 || path == NULL || path[0] == '\0') {
                archive_set_error(&a->archive, -1, "Pathname required");