X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fcomp%2Fc_rle.c;h=efd366fa2239aa08594f50c3d3fe4a266164be55;hb=0e4aa0d2d2807e0cbeac29b65d2b9061daed8941;hp=b8b9b3e1bc2ee19f1dee44864994d148906e22cf;hpb=31b8d8684441e6cd5138832bb1b2ddb10acd6ba6;p=oweals%2Fopenssl.git diff --git a/crypto/comp/c_rle.c b/crypto/comp/c_rle.c index b8b9b3e1bc..efd366fa22 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); @@ -17,19 +17,16 @@ static COMP_METHOD rle_method={ rle_compress_block, rle_expand_block, NULL, + 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 +41,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;