mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 06:49:35 -04:00
Fix whitespace in evutil.c
This commit is contained in:
parent
3557071698
commit
935e1504b1
8
evutil.c
8
evutil.c
@ -1070,7 +1070,7 @@ apply_socktype_protocol_hack(struct evutil_addrinfo *ai)
|
|||||||
ai->ai_protocol = IPPROTO_TCP;
|
ai->ai_protocol = IPPROTO_TCP;
|
||||||
ai_new->ai_socktype = SOCK_DGRAM;
|
ai_new->ai_socktype = SOCK_DGRAM;
|
||||||
ai_new->ai_protocol = IPPROTO_UDP;
|
ai_new->ai_protocol = IPPROTO_UDP;
|
||||||
|
|
||||||
ai_new->ai_next = ai->ai_next;
|
ai_new->ai_next = ai->ai_next;
|
||||||
ai->ai_next = ai_new;
|
ai->ai_next = ai_new;
|
||||||
}
|
}
|
||||||
@ -1165,7 +1165,7 @@ evutil_getaddrinfo(const char *nodename, const char *servname,
|
|||||||
|
|
||||||
if (need_socktype_protocol_hack()) {
|
if (need_socktype_protocol_hack()) {
|
||||||
apply_socktype_protocol_hack(*res);
|
apply_socktype_protocol_hack(*res);
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
#else
|
#else
|
||||||
int port=0, err;
|
int port=0, err;
|
||||||
@ -1986,8 +1986,8 @@ evutil_sockaddr_is_loopback(const struct sockaddr *addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_SECONDS_IN_MSEC_LONG \
|
#define MAX_SECONDS_IN_MSEC_LONG \
|
||||||
(((LONG_MAX) - 999) / 1000)
|
(((LONG_MAX) - 999) / 1000)
|
||||||
|
|
||||||
long
|
long
|
||||||
evutil_tv_to_msec(const struct timeval *tv)
|
evutil_tv_to_msec(const struct timeval *tv)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user