diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-03-11 13:13:38 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-03-11 13:13:38 +0000 |
commit | cbabb52cbef55dc12ac62bb5e5da7cc02cf114d2 (patch) | |
tree | 9b95d76ec1eaca7a5112c582f7f176891a918e1c /usr/src/cmd/compress/compress.c | |
parent | e790b92538e616017d45a87be045bccb1a3c8758 (diff) | |
parent | 36ac8d7d925ed80286cf13327142ca1fa6943fc3 (diff) | |
download | illumos-joyent-cbabb52cbef55dc12ac62bb5e5da7cc02cf114d2.tar.gz |
[illumos-gate merge]
commit 36ac8d7d925ed80286cf13327142ca1fa6943fc3
10119 audit(1) gets NULL check wrong
commit dbef1f18aebff7758796283d40875419be721c2b
10510 loader: bios comc_probe() is out of sync with uefi version
commit 7b38fab6300e0a1599b9741cfeafd94d362b87aa
9433 Fix ARC hit rate
commit bc54f855e0de1e590115101c80f152a20722cfb0
10120 smatch indenting fixes for usr/src/cmd
Diffstat (limited to 'usr/src/cmd/compress/compress.c')
-rw-r--r-- | usr/src/cmd/compress/compress.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/src/cmd/compress/compress.c b/usr/src/cmd/compress/compress.c index de8e62b704..f0fb948239 100644 --- a/usr/src/cmd/compress/compress.c +++ b/usr/src/cmd/compress/compress.c @@ -13,7 +13,9 @@ * specifies the terms and conditions for redistribution. */ -#pragma ident "%Z%%M% %I% %E% SMI" +/* + * Copyright (c) 2018, Joyent, Inc. + */ /* * Compress - data compression program @@ -815,7 +817,7 @@ main(int argc, char *argv[]) } else if (!quiet && !do_decomp) { (void) fprintf(stderr, "%s: ", *fileptr); - newline_needed = 1; + newline_needed = 1; } /* Actually do the compression/decompression */ @@ -1308,7 +1310,7 @@ decompress() if ((code == CLEAR) && block_compress) { for (code = 255; code >= 0; code--) - tab_prefixof(code) = 0; + tab_prefixof(code) = 0; clear_flg = 1; free_ent = FIRST - 1; if ((code = getcode()) == -1) /* O, untimely death! */ @@ -1803,8 +1805,9 @@ cl_hash(count_int hsize) /* reset code table */ *(htab_p-1) = m1; htab_p -= 16; } while ((i -= 16) >= 0); - for (i += 16; i > 0; i--) - *--htab_p = m1; + + for (i += 16; i > 0; i--) + *--htab_p = m1; } static void |