Reverted commit 8f112d669c
.
This commit is contained in:
parent
a5893af38b
commit
090e4c5f1d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue