projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc2e5e
)
Specify cast
author
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 22 Aug 2002 19:22:32 +0000
(19:22 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 22 Aug 2002 19:22:32 +0000
(19:22 -0000)
archival/libunarchive/get_header_tar.c
patch
|
blob
|
history
diff --git
a/archival/libunarchive/get_header_tar.c
b/archival/libunarchive/get_header_tar.c
index 1ba37d6d786b451e247c6a803c9fd0227ff6e18a..38fb040707637e490abb1a6dd2d03ab29a284b24 100644
(file)
--- a/
archival/libunarchive/get_header_tar.c
+++ b/
archival/libunarchive/get_header_tar.c
@@
-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);
}