X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fcomp%2Fc_rle.c;h=1a819e3737d9085d8221bc786eaad514c1b7371e;hb=60ed228e71b5c8cd7f596637b88836e17fe3df5a;hp=b8b9b3e1bc2ee19f1dee44864994d148906e22cf;hpb=dfeab0689f69c0b4bd3480ffd37a9cacc2f17d9c;p=oweals%2Fopenssl.git diff --git a/crypto/comp/c_rle.c b/crypto/comp/c_rle.c index b8b9b3e1bc..1a819e3737 100644 --- a/crypto/comp/c_rle.c +++ b/crypto/comp/c_rle.c @@ -1,8 +1,8 @@ #include #include #include -#include "objects.h" -#include "comp.h" +#include +#include static int rle_compress_block(COMP_CTX *ctx, unsigned char *out, unsigned int olen, unsigned char *in, unsigned int ilen); @@ -19,17 +19,13 @@ static COMP_METHOD rle_method={ NULL, }; -COMP_METHOD *COMP_rle() +COMP_METHOD *COMP_rle(void) { return(&rle_method); } -static int rle_compress_block(ctx,out,olen,in,ilen) -COMP_CTX *ctx; -unsigned char *out; -unsigned int olen; -unsigned char *in; -unsigned int ilen; +static int rle_compress_block(COMP_CTX *ctx, unsigned char *out, + unsigned int olen, unsigned char *in, unsigned int ilen) { /* int i; */ @@ -44,12 +40,8 @@ unsigned int ilen; return(ilen+1); } -static int rle_expand_block(ctx,out,olen,in,ilen) -COMP_CTX *ctx; -unsigned char *out; -unsigned int olen; -unsigned char *in; -unsigned int ilen; +static int rle_expand_block(COMP_CTX *ctx, unsigned char *out, + unsigned int olen, unsigned char *in, unsigned int ilen) { int i;