diff options
author | corvid, Sebastian Geerken <devnull@localhost> | 2014-07-19 22:18:03 +0200 |
---|---|---|
committer | corvid, Sebastian Geerken <devnull@localhost> | 2014-07-19 22:18:03 +0200 |
commit | d18714d72e745ea29ea5dca14b37da0944bb06bf (patch) | |
tree | cf3f056c9fe9a582e0cd8a7dbac1313cd8db4a6c /src/IO/http.c | |
parent | 3557cfec52950ac759d0e1b732ebc718553f2e9e (diff) | |
parent | f2a6892bc240c3a177ea98de50467b74f3fb18b7 (diff) |
Merge with main repo.
Diffstat (limited to 'src/IO/http.c')
-rw-r--r-- | src/IO/http.c | 6 |
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); |