Re: patch: infoemail for err pages

From: Robert Collins <robertc@dont-contact.us>
Date: 05 Sep 2002 17:44:20 +1000

On Thu, 2002-09-05 at 03:45, PsychoTekk .de wrote:
> hi all!
> man i can't believe i got cvs to work, then
> finally got to compile squidnt and now
> i even got this function to work :)
>
> http://www.psychotekk.de/extern/errorpage.diff
>
> might not be very elegant but it works

We're getting there.

I suggest you change the prototype of errorDump to

static int
errorDump(ErrorState * err, memBuf *mb);

Then eliminate the locally scoped mb from errorDump, along with the
memBufReset at the top,
and everything from if (!p){p=mb.buf} to the end of the function.

Then inoke errorDump as:
errorDump (err, &mb);

Cheers,
Rob

Received on Thu Sep 05 2002 - 01:44:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:26 MST