diff options
author | Denis Vlasenko | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /archival/libunarchive/get_header_tar_gz.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-1385899416a4396385ad421ae1f532be7103738a.zip busybox-1385899416a4396385ad421ae1f532be7103738a.tar.gz |
attempt to regularize atoi mess.
Diffstat (limited to 'archival/libunarchive/get_header_tar_gz.c')
-rw-r--r-- | archival/libunarchive/get_header_tar_gz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/libunarchive/get_header_tar_gz.c b/archival/libunarchive/get_header_tar_gz.c index 24e4f9c..af059a1 100644 --- a/archival/libunarchive/get_header_tar_gz.c +++ b/archival/libunarchive/get_header_tar_gz.c @@ -13,7 +13,7 @@ char get_header_tar_gz(archive_handle_t *archive_handle) unsigned char magic[2]; /* Cant lseek over pipe's */ - archive_handle->seek = seek_by_char; + archive_handle->seek = seek_by_read; xread(archive_handle->src_fd, &magic, 2); if ((magic[0] != 0x1f) || (magic[1] != 0x8b)) { @@ -24,8 +24,8 @@ char get_header_tar_gz(archive_handle_t *archive_handle) archive_handle->src_fd = open_transformer(archive_handle->src_fd, inflate_gunzip); archive_handle->offset = 0; - while (get_header_tar(archive_handle) == EXIT_SUCCESS); + while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/; /* Can only do one file at a time */ - return(EXIT_FAILURE); + return EXIT_FAILURE; } |