diff options
Diffstat (limited to 'chat/dircproxy/patches/patch-ac')
-rw-r--r-- | chat/dircproxy/patches/patch-ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chat/dircproxy/patches/patch-ac b/chat/dircproxy/patches/patch-ac new file mode 100644 index 00000000000..ed011110081 --- /dev/null +++ b/chat/dircproxy/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.1 2007/03/17 13:47:08 rillig Exp $ + +The ?: operator returns an rvalue, not an lvalue. + +--- src/dcc_net.c.orig 2001-12-21 21:15:55.000000000 +0100 ++++ src/dcc_net.c 2007-03-17 14:44:21.000000000 +0100 +@@ -364,7 +364,7 @@ int dccnet_expunge_proxies(void) { + n = p->next; + _dccnet_free(p); + +- p = (l ? l->next : proxies) = n; ++ p = *(l ? &(l->next) : &(proxies)) = n; + } else { + l = p; + p = p->next; |