aboutsummaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-07-18 14:25:22 +0000
committercorvid <devnull@localhost>2014-07-18 14:25:22 +0000
commitc54eb41fd30ecf1f68f43768b2918638c2b7cb40 (patch)
tree1b4d75e70f4b0083d3681a451a03965c6ec4d36e /src/IO/http.c
parent531843c893ae53a61d7278630a5061a63a251ded (diff)
Fix gcc warnings with persistent connections code that come up on 64-bit machines
(I'm still 32-bit here.) Thanks to Sebastian for pointing them out.
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 1be94e0d..8c7dcef1 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -189,7 +189,7 @@ static void Http_connect_queued_sockets(HostConnection_t *hc)
a_Chain_fcb(OpSend, sd->Info, &sd->SockFD, "FD");
Http_send_query(sd->Info, sd);
sd->connected_to = hc->host;
- dList_append(hc->active_fds, (void *)sd->SockFD);
+ dList_append(hc->active_fds, INT2VOIDP(sd->SockFD));
}
}
}
@@ -214,7 +214,7 @@ static void Http_socket_free(int SKey)
} else {
if (S->connected_to) {
HostConnection_t *hc = Http_host_connection_get(S->connected_to);
- dList_remove_fast(hc->active_fds, (void *)S->SockFD);
+ dList_remove_fast(hc->active_fds, INT2VOIDP(S->SockFD));
Http_connect_queued_sockets(hc);
if (dList_length(hc->active_fds) == 0)
Http_host_connection_remove(hc);
@@ -728,7 +728,7 @@ void a_Http_ccc(int Op, int Branch, int Dir, ChainLink *Info,
case OpSend:
if (Data2) {
if (!strcmp(Data2, "FD")) {
- Info->LocalKey = (void *)*(int*)Data1;
+ Info->LocalKey = INT2VOIDP(*(int*)Data1);
a_Chain_bcb(OpSend, Info, Data1, Data2);
} else if (!strcmp(Data2, "reply_complete")) {
int fd = VOIDP2INT(Info->LocalKey);