diff options
author | joerg <joerg> | 2011-12-05 22:46:12 +0000 |
---|---|---|
committer | joerg <joerg> | 2011-12-05 22:46:12 +0000 |
commit | 17e69f4f6e7ce93eeb159ad7e1792ae3cb8b2d76 (patch) | |
tree | 54430f023f1c285a3f579735e28ee887f267c3fd /games/quake6/patches | |
parent | 550a12e74dd4b20eb9b2b7a4a22b7e258f19874a (diff) | |
download | pkgsrc-17e69f4f6e7ce93eeb159ad7e1792ae3cb8b2d76.tar.gz |
Don't use "false" as variable name.
Diffstat (limited to 'games/quake6/patches')
-rw-r--r-- | games/quake6/patches/patch-aj | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/games/quake6/patches/patch-aj b/games/quake6/patches/patch-aj index c03b6e8ce9d..6e624149b12 100644 --- a/games/quake6/patches/patch-aj +++ b/games/quake6/patches/patch-aj @@ -1,8 +1,8 @@ -$NetBSD: patch-aj,v 1.1 2002/01/10 16:43:29 skrll Exp $ +$NetBSD: patch-aj,v 1.2 2011/12/05 22:46:12 joerg Exp $ ---- uquake/net_udp.c.orig Mon Jan 10 16:59:39 2000 +--- uquake/net_udp.c.orig 2000-01-10 16:59:39.000000000 +0000 +++ uquake/net_udp.c -@@ -32,12 +32,17 @@ +@@ -32,12 +32,17 @@ Foundation, Inc., 59 Temple Place - Suit #include <sys/param.h> #include <sys/ioctl.h> #include <errno.h> @@ -20,7 +20,7 @@ $NetBSD: patch-aj,v 1.1 2002/01/10 16:43:29 skrll Exp $ #if defined(sgi) && defined(sa_family) /* Get rid of problematic SGI #def */ #undef sa_family -@@ -62,6 +67,91 @@ +@@ -62,6 +67,91 @@ static unsigned long myAddr; #include "net_udp.h" //============================================================================= @@ -112,7 +112,7 @@ $NetBSD: patch-aj,v 1.1 2002/01/10 16:43:29 skrll Exp $ int UDP_Init (void) { -@@ -74,9 +164,18 @@ +@@ -74,9 +164,18 @@ int UDP_Init (void) return -1; // determine my name & address @@ -131,7 +131,7 @@ $NetBSD: patch-aj,v 1.1 2002/01/10 16:43:29 skrll Exp $ // if the quake hostname isn't set, set it to the machine name if (Q_strcmp(hostname.string, "UNNAMED") == 0) -@@ -137,25 +236,45 @@ +@@ -137,25 +236,45 @@ void UDP_Listen (qboolean state) int UDP_OpenSocket (int port) { @@ -141,7 +141,7 @@ $NetBSD: patch-aj,v 1.1 2002/01/10 16:43:29 skrll Exp $ int newsocket; - struct sockaddr_in address; qboolean _true = true; -+ const int false = 0; ++ const int wrong = 0; - if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) + snprintf(pbuf, sizeof(pbuf), "%d", port); @@ -166,8 +166,8 @@ $NetBSD: patch-aj,v 1.1 2002/01/10 16:43:29 skrll Exp $ - address.sin_port = htons(port); - if( bind (newsocket, (void *)&address, sizeof(address)) == -1) +#ifdef IPV6_BINDV6ONLY -+ if (setsockopt(newsocket, IPPROTO_IPV6, IPV6_BINDV6ONLY, &false, -+ sizeof(false)) < 0) { ++ if (setsockopt(newsocket, IPPROTO_IPV6, IPV6_BINDV6ONLY, &wrong, ++ sizeof(wrong)) < 0) { + /* I don't care */ + } +#endif |