mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Fix som event_warns that should have been event_warnx
This commit is contained in:
parent
e8a903cee8
commit
19c71e7454
4
event.c
4
event.c
@ -1151,7 +1151,7 @@ event_base_init_common_timeout(struct event_base *base,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (base->n_common_timeouts == MAX_COMMON_TIMEOUTS) {
|
if (base->n_common_timeouts == MAX_COMMON_TIMEOUTS) {
|
||||||
event_warn("%s: Too many common timeouts already in use; "
|
event_warnx("%s: Too many common timeouts already in use; "
|
||||||
"we only support %d per event_base", __func__,
|
"we only support %d per event_base", __func__,
|
||||||
MAX_COMMON_TIMEOUTS);
|
MAX_COMMON_TIMEOUTS);
|
||||||
goto done;
|
goto done;
|
||||||
@ -1477,7 +1477,7 @@ event_base_loop(struct event_base *base, int flags)
|
|||||||
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
|
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
|
||||||
|
|
||||||
if (base->running_loop) {
|
if (base->running_loop) {
|
||||||
event_warn("%s: reentrant invocation. Only one event_base_loop"
|
event_warnx("%s: reentrant invocation. Only one event_base_loop"
|
||||||
" can run on each event_base at once.", __func__);
|
" can run on each event_base at once.", __func__);
|
||||||
EVBASE_RELEASE_LOCK(base, th_base_lock);
|
EVBASE_RELEASE_LOCK(base, th_base_lock);
|
||||||
return -1;
|
return -1;
|
||||||
|
2
evutil.c
2
evutil.c
@ -268,7 +268,7 @@ evutil_make_socket_nonblocking(evutil_socket_t fd)
|
|||||||
{
|
{
|
||||||
u_long nonblocking = 1;
|
u_long nonblocking = 1;
|
||||||
if (ioctlsocket(fd, FIONBIO, &nonblocking) == SOCKET_ERROR) {
|
if (ioctlsocket(fd, FIONBIO, &nonblocking) == SOCKET_ERROR) {
|
||||||
event_warn("fcntl(%d, F_GETFL)", (int)fd);
|
event_sock_warn(fd, "fcntl(%d, F_GETFL)", (int)fd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
signal.c
2
signal.c
@ -379,7 +379,7 @@ evsig_handler(int sig)
|
|||||||
ev_uint8_t msg;
|
ev_uint8_t msg;
|
||||||
|
|
||||||
if (evsig_base == NULL) {
|
if (evsig_base == NULL) {
|
||||||
event_warn(
|
event_warnx(
|
||||||
"%s: received signal %d, but have no base configured",
|
"%s: received signal %d, but have no base configured",
|
||||||
__func__, sig);
|
__func__, sig);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user