man->connection.lastfdreceived = fd;
}
#else /* ifdef TARGET_ANDROID */
- len = recv(man->connection.sd_cli, buf, sizeof(buf), MSG_NOSIGNAL);
+ len = recv(man->connection.sd_cli, (void *)buf, sizeof(buf), MSG_NOSIGNAL);
#endif
if (len == 0)
}
else
#endif
- sent = send(man->connection.sd_cli, BPTR(buf), len, MSG_NOSIGNAL);
+ sent = send(man->connection.sd_cli, (const void *)BPTR(buf), len, MSG_NOSIGNAL);
if (sent >= 0)
{
buffer_list_advance(man->connection.out, sent);
}
/* read single char */
- size = recv(sd, &c, 1, MSG_NOSIGNAL);
+ size = recv(sd, (void *)&c, 1, MSG_NOSIGNAL);
/* error? */
if (size != 1)