mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
chore: remove repetitive words
Signed-off-by: tgolang <seekseat@aliyun.com>
This commit is contained in:
parent
e66df92cfc
commit
9c8860ec6c
@ -197,7 +197,7 @@ EVENT__ENABLE_VERBOSE_DEBUG:BOOL=OFF
|
|||||||
|
|
||||||
# When cross compiling, forces running a test program that verifies that Kqueue
|
# When cross compiling, forces running a test program that verifies that Kqueue
|
||||||
# works with pipes. Note that this requires you to manually run the test program
|
# works with pipes. Note that this requires you to manually run the test program
|
||||||
# on the the cross compilation target to verify that it works. See CMake
|
# on the cross compilation target to verify that it works. See CMake
|
||||||
# documentation for try_run for more details
|
# documentation for try_run for more details
|
||||||
EVENT__FORCE_KQUEUE_CHECK:BOOL=OFF
|
EVENT__FORCE_KQUEUE_CHECK:BOOL=OFF
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ struct evrpc_hook {
|
|||||||
TAILQ_ENTRY(evrpc_hook) next;
|
TAILQ_ENTRY(evrpc_hook) next;
|
||||||
|
|
||||||
/* returns EVRPC_TERMINATE; if the rpc should be aborted.
|
/* returns EVRPC_TERMINATE; if the rpc should be aborted.
|
||||||
* a hook is is allowed to rewrite the evbuffer
|
* a hook is allowed to rewrite the evbuffer
|
||||||
*/
|
*/
|
||||||
int (*process)(void *, struct evhttp_request *,
|
int (*process)(void *, struct evhttp_request *,
|
||||||
struct evbuffer *, void *);
|
struct evbuffer *, void *);
|
||||||
|
@ -483,7 +483,7 @@ int evutil_closesocket(evutil_socket_t sock);
|
|||||||
* listener socket: only the ones that implement a protocol where the
|
* listener socket: only the ones that implement a protocol where the
|
||||||
* client transmits before the server needs to respond.
|
* client transmits before the server needs to respond.
|
||||||
*
|
*
|
||||||
* @param sock The listening socket to to make deferred
|
* @param sock The listening socket to make deferred
|
||||||
* @return 0 on success (whether the operation is supported or not),
|
* @return 0 on success (whether the operation is supported or not),
|
||||||
* -1 on failure
|
* -1 on failure
|
||||||
*/
|
*/
|
||||||
|
@ -703,7 +703,7 @@ test_evbuffer_reserve_many(void *ptr)
|
|||||||
int fill_first = ptr && !strcmp(ptr, "fill");
|
int fill_first = ptr && !strcmp(ptr, "fill");
|
||||||
char *cp1, *cp2;
|
char *cp1, *cp2;
|
||||||
|
|
||||||
/* When reserving the the first chunk, we just allocate it */
|
/* When reserving the first chunk, we just allocate it */
|
||||||
n = evbuffer_reserve_space(buf, 128, v, 2);
|
n = evbuffer_reserve_space(buf, 128, v, 2);
|
||||||
evbuffer_validate(buf);
|
evbuffer_validate(buf);
|
||||||
tt_int_op(n, ==, 1);
|
tt_int_op(n, ==, 1);
|
||||||
|
2
wepoll.c
2
wepoll.c
@ -1877,7 +1877,7 @@ int sock_feed_event(port_state_t* port_state,
|
|||||||
if (epoll_events == 0)
|
if (epoll_events == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* If the the socket has the EPOLLONESHOT flag set, unmonitor all events,
|
/* If the socket has the EPOLLONESHOT flag set, unmonitor all events,
|
||||||
* even EPOLLERR and EPOLLHUP. But always keep looking for closed sockets. */
|
* even EPOLLERR and EPOLLHUP. But always keep looking for closed sockets. */
|
||||||
if (sock_state->user_events & EPOLLONESHOT)
|
if (sock_state->user_events & EPOLLONESHOT)
|
||||||
sock_state->user_events = 0;
|
sock_state->user_events = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user