blob: ed0111100815b0a49c79161aae9588b848ab2ba4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
|