opnsense-ports/net/hlmaster/files/patch-HLServerList.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
596 B
C++

--- 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);
}
}