Reverted commit 8f112d669c.

This commit is contained in:
zico 2014-06-01 19:10:38 +02:00
parent a5893af38b
commit 090e4c5f1d
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ static fix64 StartAbortMenuTime;
/* General UDP functions - START */
static ssize_t dxx_sendto(int sockfd, const void *msg, int len, unsigned int flags, const struct sockaddr *to, socklen_t tolen)
{
ssize_t rv = sendto(sockfd, (const char *)msg, len, flags, to, tolen);
ssize_t rv = sendto(sockfd, msg, len, flags, to, tolen);
UDP_num_sendto++;
if (rv > 0)
@ -136,7 +136,7 @@ static inline ssize_t dxx_sendto(int sockfd, const void *msg, int len, unsigned
static ssize_t dxx_recvfrom(int sockfd, void *buf, int len, unsigned int flags, struct sockaddr *from, socklen_t *fromlen)
{
ssize_t rv = recvfrom(sockfd, (char *)buf, len, flags, from, fromlen);
ssize_t rv = recvfrom(sockfd, buf, len, flags, from, fromlen);
UDP_num_recvfrom++;
UDP_len_recvfrom += rv;