aboutsummaryrefslogtreecommitdiff
path: root/devel/dmucs/files/patch-dmucs_db.cc
blob: fd5d0f8e2fd578aecada5e4209f435e5ad9bba57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 void *sock)
 {
     MutexMonitor m(&mutex_);
 
@@ -74,7 +74,7 @@
 
 
 void
-DmucsDb::releaseCpu(const unsigned int sock)
+DmucsDb::releaseCpu(const void *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 void *sock)
 {
     struct in_addr t2;
     t2.s_addr = hostIp;
@@ -164,13 +164,13 @@
 
 
 void
-DmucsDpropDb::releaseCpu(const unsigned int sock)
+DmucsDpropDb::releaseCpu(const void *sock)
 {
-    DMUCS_DEBUG((stderr, "releaseCpu for socket 0x%x\n", sock));
+    DMUCS_DEBUG((stderr, "releaseCpu for socket %p\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 %p\n",
 		     sock));
 	return;
     }