diff options
author | Denis Vlasenko | 2008-02-16 13:20:56 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-02-16 13:20:56 +0000 |
commit | 3718832a1542f7bf786a1678741b8566ad3a35c6 (patch) | |
tree | ac5851de53237fb3a0c77c9cead27acd279897f0 /archival/libunarchive/seek_by_read.c | |
parent | 1e18f1bab3400246129756a35bb5752ba98f4c90 (diff) | |
download | busybox-3718832a1542f7bf786a1678741b8566ad3a35c6.zip busybox-3718832a1542f7bf786a1678741b8566ad3a35c6.tar.gz |
*: more readable handling of pipe fds. No code changes.
Diffstat (limited to 'archival/libunarchive/seek_by_read.c')
-rw-r--r-- | archival/libunarchive/seek_by_read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/seek_by_read.c b/archival/libunarchive/seek_by_read.c index 452d82d..1f2b805 100644 --- a/archival/libunarchive/seek_by_read.c +++ b/archival/libunarchive/seek_by_read.c @@ -6,10 +6,10 @@ #include "libbb.h" #include "unarchive.h" -/* If we are reading through a pipe(), or from stdin then we can't lseek, +/* If we are reading through a pipe, or from stdin then we can't lseek, * we must read and discard the data to skip over it. */ -void seek_by_read(const archive_handle_t *archive_handle, const unsigned int jump_size) +void seek_by_read(const archive_handle_t *archive_handle, unsigned jump_size) { if (jump_size) bb_copyfd_exact_size(archive_handle->src_fd, -1, jump_size); |