summaryrefslogtreecommitdiff
path: root/chat/dircproxy/patches/patch-ad
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-17 13:47:08 +0000
committerrillig <rillig@pkgsrc.org>2007-03-17 13:47:08 +0000
commit3eff7f4e52249cba736066c89f291a94be6cccc6 (patch)
tree4b6cdf08d16697a66c613f5bdd0642100f5fb8d5 /chat/dircproxy/patches/patch-ad
parent8b9f3e13ab7edd9db4af4ca77ff20764eaa1f36b (diff)
downloadpkgsrc-3eff7f4e52249cba736066c89f291a94be6cccc6.tar.gz
Fixed gcc4 error messages.
Diffstat (limited to 'chat/dircproxy/patches/patch-ad')
-rw-r--r--chat/dircproxy/patches/patch-ad24
1 files changed, 24 insertions, 0 deletions
diff --git a/chat/dircproxy/patches/patch-ad b/chat/dircproxy/patches/patch-ad
new file mode 100644
index 00000000000..8c9142f8c6f
--- /dev/null
+++ b/chat/dircproxy/patches/patch-ad
@@ -0,0 +1,24 @@
+$NetBSD: patch-ad,v 1.1 2007/03/17 13:47:08 rillig Exp $
+
+The ?: operator returns an rvalue, not an lvalue.
+
+--- src/irc_server.c.orig 2002-01-31 15:56:37.000000000 +0100
++++ src/irc_server.c 2007-03-17 14:43:55.000000000 +0100
+@@ -700,7 +700,7 @@ static int _ircserver_gotmsg(struct ircp
+ free(s);
+
+ /* Was in the squelch list, so remove it and stop looking */
+- s = (l ? l->next : p->squelch_modes) = n;
++ s = *(l ? &(l->next) : &(p->squelch_modes)) = n;
+ squelch = 1;
+ break;
+ } else {
+@@ -741,7 +741,7 @@ static int _ircserver_gotmsg(struct ircp
+ free(s);
+
+ /* Was in the squelch list, so remove it and stop looking */
+- s = (l ? l->next : p->squelch_modes) = n;
++ s = *(l ? &(l->next) : &(p->squelch_modes)) = n;
+ squelch = 1;
+ break;
+ } else {