Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/archival/libunarchive/decompress_uncompress.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 72  Line 72 
72   * be stored in the compressed file.   * be stored in the compressed file.
73   */   */
74    
75  USE_DESKTOP(long long) int FAST_FUNC  IF_DESKTOP(long long) int FAST_FUNC
76  unpack_Z_stream(int fd_in, int fd_out)  unpack_Z_stream(int fd_in, int fd_out)
77  {  {
78   USE_DESKTOP(long long total_written = 0;)   IF_DESKTOP(long long total_written = 0;)
79   USE_DESKTOP(long long) int retval = -1;   IF_DESKTOP(long long) int retval = -1;
80   unsigned char *stackp;   unsigned char *stackp;
81   long code;   long code;
82   int finchar;   int finchar;
# Line 265  unpack_Z_stream(int fd_in, int fd_out) Line 265  unpack_Z_stream(int fd_in, int fd_out)
265   if (outpos >= OBUFSIZ) {   if (outpos >= OBUFSIZ) {
266   full_write(fd_out, outbuf, outpos);   full_write(fd_out, outbuf, outpos);
267  //error check??  //error check??
268   USE_DESKTOP(total_written += outpos;)   IF_DESKTOP(total_written += outpos;)
269   outpos = 0;   outpos = 0;
270   }   }
271   stackp += i;   stackp += i;
# Line 294  unpack_Z_stream(int fd_in, int fd_out) Line 294  unpack_Z_stream(int fd_in, int fd_out)
294   if (outpos > 0) {   if (outpos > 0) {
295   full_write(fd_out, outbuf, outpos);   full_write(fd_out, outbuf, outpos);
296  //error check??  //error check??
297   USE_DESKTOP(total_written += outpos;)   IF_DESKTOP(total_written += outpos;)
298   }   }
299    
300   retval = USE_DESKTOP(total_written) + 0;   retval = IF_DESKTOP(total_written) + 0;
301   err:   err:
302   free(inbuf);   free(inbuf);
303   free(outbuf);   free(outbuf);

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