]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove major()/minor() in favor of the archive_entry functions.
authorTim Kientzle <kientzle@gmail.com>
Thu, 6 Aug 2009 04:59:41 +0000 (00:59 -0400)
committerTim Kientzle <kientzle@gmail.com>
Thu, 6 Aug 2009 04:59:41 +0000 (00:59 -0400)
SVN-Revision: 1346

cpio/cpio.c

index 7b515f6c6b7dd4f82d3eac48ff10adf158a2fa14..5b2a9afa5ae774c899f5f109a8b1387e27040d41 100644 (file)
@@ -975,8 +975,8 @@ list_item_verbose(struct cpio *cpio, struct archive_entry *entry)
        /* Print device number or file size. */
        if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) {
                snprintf(size, sizeof(size), "%lu,%lu",
-                   (unsigned long)major(st->st_rdev),
-                   (unsigned long)minor(st->st_rdev)); /* ls(1) also casts here. */
+                   (unsigned long)archive_entry_rdevmajor(entry),
+                   (unsigned long)archive_entry_rdevminor(entry));
        } else {
                snprintf(size, sizeof(size), CPIO_FILESIZE_PRINTF,
                    (CPIO_FILESIZE_TYPE)st->st_size);