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

Nigel Cunningham
2005-07-06T14:25:47Z

Hi.

Thanks very much for all your reading and commenting. I really
appreciate it. By the way, you do want replies sent to both addresses?

This one is contributed code. I haven't had or needed an update since it
was added though, so I guess I could reindent it. Will do.

Regards,

Nigel

On Wed, 2005-07-06 at 20:07, Pekka Enberg wrote:
> 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.
>
--
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened.