diff options
| author | tedu <> | 2014-11-03 16:58:28 +0000 |
|---|---|---|
| committer | tedu <> | 2014-11-03 16:58:28 +0000 |
| commit | 17e80c73835f2639d8e3ea262bdd7e0d185cebc1 (patch) | |
| tree | 82f33c5a8e89b7c1efe3edba9f73e31fd82c52c3 /src/lib/libcrypto/comp/c_rle.c | |
| parent | 97f48e5c1a29dd52ce16c023eaa14f5da0110610 (diff) | |
| download | openbsd-17e80c73835f2639d8e3ea262bdd7e0d185cebc1.tar.gz openbsd-17e80c73835f2639d8e3ea262bdd7e0d185cebc1.tar.bz2 openbsd-17e80c73835f2639d8e3ea262bdd7e0d185cebc1.zip | |
minor cleanup of zlib code. DSO is gone. ok jsing.
Diffstat (limited to 'src/lib/libcrypto/comp/c_rle.c')
| -rw-r--r-- | src/lib/libcrypto/comp/c_rle.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/comp/c_rle.c b/src/lib/libcrypto/comp/c_rle.c index 214efe01b2..7004c35029 100644 --- a/src/lib/libcrypto/comp/c_rle.c +++ b/src/lib/libcrypto/comp/c_rle.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: c_rle.c,v 1.7 2014/06/12 15:49:28 deraadt Exp $ */ | 1 | /* $OpenBSD: c_rle.c,v 1.8 2014/11/03 16:58:28 tedu Exp $ */ |
| 2 | #include <stdio.h> | 2 | #include <stdio.h> |
| 3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
| 4 | #include <string.h> | 4 | #include <string.h> |
| @@ -27,10 +27,8 @@ static int | |||
| 27 | rle_compress_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, | 27 | rle_compress_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, |
| 28 | unsigned char *in, unsigned int ilen) | 28 | unsigned char *in, unsigned int ilen) |
| 29 | { | 29 | { |
| 30 | /* int i; */ | ||
| 31 | 30 | ||
| 32 | if (ilen == 0 || olen < (ilen - 1)) { | 31 | if (ilen == 0 || olen < (ilen - 1)) { |
| 33 | /* ZZZZZZZZZZZZZZZZZZZZZZ */ | ||
| 34 | return (-1); | 32 | return (-1); |
| 35 | } | 33 | } |
| 36 | 34 | ||
| @@ -46,7 +44,6 @@ rle_expand_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, | |||
| 46 | int i; | 44 | int i; |
| 47 | 45 | ||
| 48 | if (olen < (ilen - 1)) { | 46 | if (olen < (ilen - 1)) { |
| 49 | /* ZZZZZZZZZZZZZZZZZZZZZZ */ | ||
| 50 | return (-1); | 47 | return (-1); |
| 51 | } | 48 | } |
| 52 | 49 | ||
