Lines 1-20
Link Here
|
1 |
--- assa/Connector.h.orig Wed Dec 24 17:32:49 2003 |
1 |
--- assa/Connector.h.orig Tue Mar 1 20:40:39 2005 |
2 |
+++ assa/Connector.h Wed Dec 24 17:34:16 2003 |
2 |
+++ assa/Connector.h Tue Mar 22 20:13:07 2005 |
3 |
@@ -407,7 +407,7 @@ |
3 |
@@ -406,7 +406,7 @@ |
4 |
int error; |
4 |
int error; |
5 |
int ret; |
5 |
int ret; |
6 |
error = ret = errno = 0; |
6 |
error = ret = errno = 0; |
7 |
- size_t n = sizeof (error); |
7 |
- size_t n = sizeof (error); |
8 |
+ socklen_t n = sizeof (error); |
8 |
+ socklen_t n = sizeof (error); |
9 |
|
9 |
|
10 |
/* Always remove IO handler first. */ |
10 |
/** Always remove IO handler first. |
11 |
m_reactor->removeHandler (this, WRITE_EVENT); |
11 |
*/ |
12 |
@@ -415,7 +415,7 @@ |
|
|
13 |
#if defined(linux) |
14 |
ret = getsockopt (m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &n); |
15 |
#else // Solaris 2.6 |
16 |
- ret = getsockopt (m_fd, SOL_SOCKET, SO_ERROR, (char*)&error, (int*)&n); |
17 |
+ ret = getsockopt (m_fd, SOL_SOCKET, SO_ERROR, (char*)&error, &n); |
18 |
#endif |
19 |
|
20 |
if (ret == 0) { |