git-svn: trunk@4541
aCaB authored on 2008/12/07 21:33:11... | ... |
@@ -95,7 +95,7 @@ static int islocal(struct sockaddr *sa, socklen_t addrlen) { |
95 | 95 |
|
96 | 96 |
|
97 | 97 |
static int cpool_addtcp(char *addr, char *port) { |
98 |
- struct addrinfo hints, *res, *res2;; |
|
98 |
+ struct addrinfo hints, *res, *res2; |
|
99 | 99 |
struct CP_ENTRY *cpe = (struct CP_ENTRY *)&cp->pool[cp->entries-1]; |
100 | 100 |
|
101 | 101 |
memset(&hints, 0, sizeof(hints)); |
... | ... |
@@ -136,7 +136,9 @@ int nc_connect(int s, struct CP_ENTRY *cpe) { |
136 | 136 |
} |
137 | 137 |
|
138 | 138 |
|
139 |
-int nc_send(int s, const void *buf, size_t len) { |
|
139 |
+int nc_send(int s, const void *buff, size_t len) { |
|
140 |
+ char *buf = (char *)buff; |
|
141 |
+ |
|
140 | 142 |
while(len) { |
141 | 143 |
int res = send(s, buf, len, 0); |
142 | 144 |
time_t timeout = time(NULL) + TIMEOUT; |