Specify cast

This commit is contained in:
Glenn L McGrath 2002-08-22 19:22:32 +00:00
parent 4cc2e5e944
commit 0775a07d87

View 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);
}