[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] 2.0b8_ma3 leafnode very slow



On 04 Jul 2001 14:26:30 +0200
Matthias Andree <ma@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Grab 2.0b8_ma4, use your favourite text editor on nntpd.c and insert
> these lines (without the "----"-bars) after the declarations in main:
> 
> ----------------------------------------------------------------------
>     const long bufsize = BLOCKSIZE;
>     char *buf = critmalloc(bufsize, "main_loop");
>     
>     /* set buffer */
>     fflush(stdout);
>     setvbuf(stdout, buf, _IOFBF, bufsize);
> ----------------------------------------------------------------------
> 
> The new lines shown above are identical, you can just cut them and
> insert them.

Doesn't compile. I get:
compiling nntpd.c
nntpd.c: In function `main':
nntpd.c:2005: parse error before `struct'
nntpd.c:2045: `sa' undeclared (first use in this function)
nntpd.c:2045: (Each undeclared identifier is reported only once
nntpd.c:2045: for each function it appears in.)
nntpd.c:2075: `peer' undeclared (first use in this function)
make: *** [nntpd.o] Error 1  

Well my C is a bit rusty. Anything obvious I'm overlooking?

Regards,
	Joerg Mosthaf


-- 
Joerg Mosthaf           tel.: +49(0)6221/866122
Konrad-Adenauer-Str. 17 cel.: +49(0)177/2500482
69221 Dossenheim        email: Joerg_Mosthaf@xxxxxx

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list