diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-22 19:22:32 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-22 19:22:32 +0000 |
commit | 0775a07d87e0c6bd467a61f5457e99ba20ac99ac (patch) | |
tree | 498cd20689d036bbd5eeb7eb108e6a2a4b7da2cd | |
parent | 4cc2e5e9442c725ab6a4fbfdda1413212c264f74 (diff) | |
download | busybox-w32-0775a07d87e0c6bd467a61f5457e99ba20ac99ac.tar.gz busybox-w32-0775a07d87e0c6bd467a61f5457e99ba20ac99ac.tar.bz2 busybox-w32-0775a07d87e0c6bd467a61f5457e99ba20ac99ac.zip |
Specify cast
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 1ba37d6d7..38fb04070 100644 --- 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) | |||
129 | tar_entry->link_name = | 129 | tar_entry->link_name = |
130 | strlen(tar.formated.linkname) ? xstrdup(tar.formated.linkname) : NULL; | 130 | strlen(tar.formated.linkname) ? xstrdup(tar.formated.linkname) : NULL; |
131 | tar_entry->device = | 131 | tar_entry->device = |
132 | (strtol(tar.formated.devmajor, NULL, 8) << 8) + | 132 | (dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) + |
133 | strtol(tar.formated.devminor, NULL, 8); | 133 | strtol(tar.formated.devminor, NULL, 8)); |
134 | 134 | ||
135 | return (tar_entry); | 135 | return (tar_entry); |
136 | } | 136 | } |