aboutsummaryrefslogtreecommitdiff
path: root/net/hlmaster
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2007-08-03 11:55:02 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2007-08-03 11:55:02 +0000
commita38acb6c73a498fc01a10f5f1de3b9477365d62f (patch)
treecaa163af80b25049db8366d133676213f6fabd6d /net/hlmaster
parent01c0f033963ec79411a11ee909c9a30dae5bd90f (diff)
downloadports-a38acb6c73a498fc01a10f5f1de3b9477365d62f.tar.gz
ports-a38acb6c73a498fc01a10f5f1de3b9477365d62f.zip
Fix build on 64bit platforms
Notes
Notes: svn path=/head/; revision=197014
Diffstat (limited to 'net/hlmaster')
-rw-r--r--net/hlmaster/files/patch-HLServerList.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/hlmaster/files/patch-HLServerList.cpp b/net/hlmaster/files/patch-HLServerList.cpp
new file mode 100644
index 000000000000..2a652ccc7076
--- /dev/null
+++ b/net/hlmaster/files/patch-HLServerList.cpp
@@ -0,0 +1,20 @@
+--- src/HLServerList.cpp.orig 2007-08-03 13:52:50.000000000 +0200
++++ src/HLServerList.cpp 2007-08-03 13:53:27.000000000 +0200
+@@ -73,7 +73,7 @@
+ m_nSkipRequests = 0;
+
+ // initialize challenge number (should be random)
+- m_nChallengeSeed = (int) &m_pHeadDummyItem;
++ m_nChallengeSeed = (intptr_t) &m_pHeadDummyItem;
+ }
+
+
+@@ -604,7 +604,7 @@
+ if(pItem != NULL)
+ {
+ // get a fresh, random id
+- pItem->m_nChallengeId = GetRandomChallenge((int)&pItem, (int)nTimestamp);
++ pItem->m_nChallengeId = GetRandomChallenge((intptr_t)&pItem, (int)nTimestamp);
+ }
+ }
+