ports/irc/dircproxy/files/patch-src_net.c
Martin Wilke c9befc23b0 - Fix build with gcc 4.2
PR:		116820
Submitted by:	miwi
Approved by:	maintainer timeout
2007-10-17 14:01:16 +00:00

11 lines
399 B
C

--- src/net.c.orig 2007-10-02 13:33:00.000000000 +0200
+++ src/net.c 2007-10-02 13:33:28.000000000 +0200
@@ -459,7 +459,7 @@
return 0;
}
- l = &(buff == SB_IN ? s->in_buff_last : s->out_buff_last);
+ l = (buff == SB_IN ? &(s->in_buff_last) : &(s->out_buff_last));
/* Check whether we can just add to the existing buffer */
if ((mode == SM_RAW) && *l && ((*l)->mode == mode)) {