Re: [PATCH] [48/48] Suspend2 2.1.9.8 for 2.6.12: 624-filewriter.patch

Pekka Enberg
2005-07-06T14:11:37Z

On 7/6/05, Nigel Cunningham <nigel@suspend2.net> wrote:
> diff -ruNp 625-crypto-api-work.patch-old/crypto/lzf.c 625-crypto-api-work.patch-new/crypto/lzf.c
> --- 625-crypto-api-work.patch-old/crypto/lzf.c 1970-01-01 10:00:00.000000000 +1000
> +++ 625-crypto-api-work.patch-new/crypto/lzf.c 2005-07-05 23:57:15.000000000 +1000
> +static int lzf_compress(void * context, const u8 *in_data, unsigned int in_len,
> + u8 *out_data, unsigned int *out_len)
> +{
> + struct lzf_ctx * ctx = (struct lzf_ctx *) context;
> + const u8 **htab = ctx->hbuf;
> + const u8 **hslot;
> + const u8 *ip = in_data;
> + u8 *op = out_data;
> + const u8 *in_end = ip + in_len;
> + u8 *out_end = op + *out_len - 3;
> + const u8 *ref;
> +
> + unsigned int hval = FRST (ip);
> + unsigned long off;
> + int lit = 0;
> +
> + if (ctx->first_call) {
> + ctx->first_call = 0;
> + }
> +#if INIT_HTAB

[snip, snip]

scripts/Lindent, please.