diff options
author | Max Khon <fjoe@FreeBSD.org> | 2008-07-07 16:17:54 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2008-07-07 16:17:54 +0000 |
commit | 3889d9f5d61ce705215e6449d4f7dc0dc95f455d (patch) | |
tree | f0ffe07a92aaff4ed3cbf64f2818ca8b46eb7593 /devel/dmucs/files/patch-dmucs_db.cc | |
parent | POE::Test::Loops contains one function, generate(), which will (diff) |
Unbreak on 64-bit archs
PR: 124985 (partially)
Diffstat (limited to 'devel/dmucs/files/patch-dmucs_db.cc')
-rw-r--r-- | devel/dmucs/files/patch-dmucs_db.cc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/devel/dmucs/files/patch-dmucs_db.cc b/devel/dmucs/files/patch-dmucs_db.cc new file mode 100644 index 000000000000..dbd30894e1a8 --- /dev/null +++ b/devel/dmucs/files/patch-dmucs_db.cc @@ -0,0 +1,46 @@ +--- dmucs_db.cc.orig 2008-07-07 23:02:33.000000000 +0700 ++++ dmucs_db.cc 2008-07-07 23:12:12.000000000 +0700 +@@ -63,7 +63,7 @@ + void + DmucsDb::assignCpuToClient(const unsigned int clientIp, + const DmucsDprop dprop, +- const unsigned int sock) ++ const unsigned long sock) + { + MutexMonitor m(&mutex_); + +@@ -74,7 +74,7 @@ + + + void +-DmucsDb::releaseCpu(const unsigned int sock) ++DmucsDb::releaseCpu(const unsigned long sock) + { + /* Get the dprop so that we can release the cpu back into the + correct sub-db in the DmucsDb. */ +@@ -146,7 +146,7 @@ + + void + DmucsDpropDb::assignCpuToClient(const unsigned int hostIp, +- const unsigned int sock) ++ const unsigned long sock) + { + struct in_addr t2; + t2.s_addr = hostIp; +@@ -164,13 +164,13 @@ + + + void +-DmucsDpropDb::releaseCpu(const unsigned int sock) ++DmucsDpropDb::releaseCpu(const unsigned long sock) + { +- DMUCS_DEBUG((stderr, "releaseCpu for socket 0x%x\n", sock)); ++ DMUCS_DEBUG((stderr, "releaseCpu for socket 0x%lx\n", sock)); + + dmucs_assigned_cpus_iter_t itr = assignedCpus_.find(sock); + if (itr == assignedCpus_.end()) { +- DMUCS_DEBUG((stderr, "No cpu found in assignedCpus for sock 0x%x\n", ++ DMUCS_DEBUG((stderr, "No cpu found in assignedCpus for sock 0x%lx\n", + sock)); + return; + } |