projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trivial fixes to make bbox compile with gcc 4.3.0
[oweals/busybox.git]
/
archival
/
libunarchive
/
seek_by_jump.c
diff --git
a/archival/libunarchive/seek_by_jump.c
b/archival/libunarchive/seek_by_jump.c
index 6cd2564186ee85098c4a6d309319624fc7b51c77..5288c1d73657714be031a6abced054eede3876f4 100644
(file)
--- a/
archival/libunarchive/seek_by_jump.c
+++ b/
archival/libunarchive/seek_by_jump.c
@@
-6,14
+6,12
@@
#include "libbb.h"
#include "unarchive.h"
#include "libbb.h"
#include "unarchive.h"
-void seek_by_jump(const archive_handle_t *archive_handle,
const unsigned int
amount)
+void seek_by_jump(const archive_handle_t *archive_handle,
unsigned
amount)
{
if (lseek(archive_handle->src_fd, (off_t) amount, SEEK_CUR) == (off_t) -1) {
{
if (lseek(archive_handle->src_fd, (off_t) amount, SEEK_CUR) == (off_t) -1) {
-#ifdef CONFIG_FEATURE_UNARCHIVE_TAPE
- if (errno == ESPIPE) {
+ if (errno == ESPIPE)
seek_by_read(archive_handle, amount);
seek_by_read(archive_handle, amount);
- } else
-#endif
+ else
bb_perror_msg_and_die("seek failure");
}
}
bb_perror_msg_and_die("seek failure");
}
}