wok-current annotate busybox/stuff/busybox-1.11.0-unlzma.u @ rev 1770
busybox udhcpc/zcip: call /etc/ip*.d scripts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 26 18:02:56 2008 +0000 (2008-11-26) |
parents | |
children |
rev | line source |
---|---|
pascal@952 | 1 --- busybox-1.11.0/archival/libunarchive/decompress_unlzma.c |
pascal@952 | 2 +++ busybox-1.11.0/archival/libunarchive/decompress_unlzma.c |
pascal@952 | 3 @@ -78,7 +78,7 @@ |
pascal@952 | 4 } |
pascal@952 | 5 |
pascal@952 | 6 /* Called once */ |
pascal@952 | 7 -static ALWAYS_INLINE void rc_free(rc_t * rc) |
pascal@952 | 8 +static ALWAYS_INLINE void rc_free(void * rc) |
pascal@952 | 9 { |
pascal@952 | 10 if (ENABLE_FEATURE_CLEAN_UP) |
pascal@952 | 11 free(rc); |
pascal@952 | 12 @@ -491,10 +491,14 @@ |
pascal@952 | 13 |
pascal@952 | 14 if (full_write(dst_fd, buffer, buffer_pos) != (ssize_t)buffer_pos) { |
pascal@952 | 15 bad: |
pascal@952 | 16 - rc_free(rc); |
pascal@952 | 17 - return -1; |
pascal@952 | 18 + len = -1; |
pascal@952 | 19 + } |
pascal@952 | 20 + else { |
pascal@952 | 21 + USE_DESKTOP(total_written += buffer_pos;) |
pascal@952 | 22 + len = USE_DESKTOP(total_written) + 0; |
pascal@952 | 23 } |
pascal@952 | 24 rc_free(rc); |
pascal@952 | 25 - USE_DESKTOP(total_written += buffer_pos;) |
pascal@952 | 26 - return USE_DESKTOP(total_written) + 0; |
pascal@952 | 27 + rc_free(buffer); |
pascal@952 | 28 + rc_free(p); |
pascal@952 | 29 + return len; |
pascal@952 | 30 } |