wok view busybox/stuff/busybox-1.11.0-unlzma.u @ rev 972

Up: freetype (2.3.7)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 30 12:17:40 2008 +0200 (2008-06-30)
parents
children
line source
1 --- busybox-1.11.0/archival/libunarchive/decompress_unlzma.c
2 +++ busybox-1.11.0/archival/libunarchive/decompress_unlzma.c
3 @@ -78,7 +78,7 @@
4 }
6 /* Called once */
7 -static ALWAYS_INLINE void rc_free(rc_t * rc)
8 +static ALWAYS_INLINE void rc_free(void * rc)
9 {
10 if (ENABLE_FEATURE_CLEAN_UP)
11 free(rc);
12 @@ -491,10 +491,14 @@
14 if (full_write(dst_fd, buffer, buffer_pos) != (ssize_t)buffer_pos) {
15 bad:
16 - rc_free(rc);
17 - return -1;
18 + len = -1;
19 + }
20 + else {
21 + USE_DESKTOP(total_written += buffer_pos;)
22 + len = USE_DESKTOP(total_written) + 0;
23 }
24 rc_free(rc);
25 - USE_DESKTOP(total_written += buffer_pos;)
26 - return USE_DESKTOP(total_written) + 0;
27 + rc_free(buffer);
28 + rc_free(p);
29 + return len;
30 }