Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/archival/libunarchive/seek_by_jump.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 6  Line 6 
6  #include "libbb.h"  #include "libbb.h"
7  #include "unarchive.h"  #include "unarchive.h"
8    
9  void FAST_FUNC seek_by_jump(const archive_handle_t *archive_handle, unsigned amount)  void FAST_FUNC seek_by_jump(int fd, off_t amount)
10  {  {
11   if (amount   if (amount
12   && lseek(archive_handle->src_fd, (off_t) amount, SEEK_CUR) == (off_t) -1   && lseek(fd, amount, SEEK_CUR) == (off_t) -1
13   ) {   ) {
14   if (errno == ESPIPE)   if (errno == ESPIPE)
15   seek_by_read(archive_handle, amount);   seek_by_read(fd, amount);
16   else   else
17   bb_perror_msg_and_die("seek failure");   bb_perror_msg_and_die("seek failure");
18   }   }

Legend:
Removed from v.983  
changed lines
  Added in v.984