Specify cast
authorGlenn L McGrath <bug1@ihug.co.nz>
Thu, 22 Aug 2002 19:22:32 +0000 (19:22 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Thu, 22 Aug 2002 19:22:32 +0000 (19:22 -0000)
archival/libunarchive/get_header_tar.c

index 1ba37d6d786b451e247c6a803c9fd0227ff6e18a..38fb040707637e490abb1a6dd2d03ab29a284b24 100644 (file)
@@ -129,8 +129,8 @@ file_header_t *get_header_tar(FILE * tar_stream)
        tar_entry->link_name =
                strlen(tar.formated.linkname) ? xstrdup(tar.formated.linkname) : NULL;
        tar_entry->device =
-               (strtol(tar.formated.devmajor, NULL, 8) << 8) +
-               strtol(tar.formated.devminor, NULL, 8);
+               (dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) +
+                                strtol(tar.formated.devminor, NULL, 8));
 
        return (tar_entry);
 }