This commit is contained in:
Max Lv
2013-06-15 11:31:51 +08:00
parent c2a108cc88
commit 1f72c5d30a
+1 -1
View File
@@ -220,7 +220,7 @@ static void server_recv_cb (EV_P_ ev_io *w, int revents) {
// IP V4
size_t in_addr_len = sizeof(struct in_addr);
if (r > in_addr_len) {
inet_ntop(AF_INET, (void *)(server->buf + offset),
inet_ntop(AF_INET, (const void *)(server->buf + offset),
host, INET_ADDRSTRLEN);
offset += in_addr_len;
}