ar: heh, there *was* "-1" already...
[oweals/busybox.git] / archival / gzip.c
index 3358469081e2c08c08be85f9d9d46126f17c752f..71505698c6590adadc298ecd5cbd6ed84f4d01c5 100644 (file)
@@ -1173,7 +1173,7 @@ static void gen_codes(ct_data * tree, int max_code)
 
                Tracec(tree != G2.static_ltree,
                           (stderr, "\nn %3d %c l %2d c %4x (%x) ", n,
-                               (isgraph(n) ? n : ' '), len, tree[n].Code,
+                               (n > ' ' ? n : ' '), len, tree[n].Code,
                                next_code[len] - 1));
        }
 }
@@ -1541,7 +1541,7 @@ static void compress_block(ct_data * ltree, ct_data * dtree)
                lc = G1.l_buf[lx++];
                if ((flag & 1) == 0) {
                        SEND_CODE(lc, ltree);   /* send a literal byte */
-                       Tracecv(isgraph(lc), (stderr, " '%c' ", lc));
+                       Tracecv(lc > ' ', (stderr, " '%c' ", lc));
                } else {
                        /* Here, lc is the match length - MIN_MATCH */
                        code = G2.length_code[lc];
@@ -2078,7 +2078,7 @@ int gzip_main(int argc UNUSED_PARAM, char **argv)
        //if (opt & 0x4) // -v
        argv += optind;
 
-       SET_PTR_TO_GLOBALS(xzalloc(sizeof(struct globals) + sizeof(struct globals2))
+       SET_PTR_TO_GLOBALS((char *)xzalloc(sizeof(struct globals)+sizeof(struct globals2))
                        + sizeof(struct globals));
        barrier();