From 9c8860ec6c38655d4698a038ba95064bbea96ff2 Mon Sep 17 00:00:00 2001 From: tgolang Date: Mon, 11 Mar 2024 15:50:43 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: tgolang --- Documentation/Building.md | 2 +- evrpc-internal.h | 2 +- include/event2/util.h | 2 +- test/regress_buffer.c | 2 +- wepoll.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/Building.md b/Documentation/Building.md index 9a59082b..cf07c6e8 100644 --- a/Documentation/Building.md +++ b/Documentation/Building.md @@ -197,7 +197,7 @@ EVENT__ENABLE_VERBOSE_DEBUG:BOOL=OFF # 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 -# 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 EVENT__FORCE_KQUEUE_CHECK:BOOL=OFF diff --git a/evrpc-internal.h b/evrpc-internal.h index 1d97c6e0..3d11f03e 100644 --- a/evrpc-internal.h +++ b/evrpc-internal.h @@ -39,7 +39,7 @@ struct evrpc_hook { TAILQ_ENTRY(evrpc_hook) next; /* 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 *, struct evbuffer *, void *); diff --git a/include/event2/util.h b/include/event2/util.h index 321e2454..a75a03c6 100644 --- a/include/event2/util.h +++ b/include/event2/util.h @@ -483,7 +483,7 @@ int evutil_closesocket(evutil_socket_t sock); * listener socket: only the ones that implement a protocol where the * 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), * -1 on failure */ diff --git a/test/regress_buffer.c b/test/regress_buffer.c index 231c66a7..01c64220 100644 --- a/test/regress_buffer.c +++ b/test/regress_buffer.c @@ -703,7 +703,7 @@ test_evbuffer_reserve_many(void *ptr) int fill_first = ptr && !strcmp(ptr, "fill"); 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); evbuffer_validate(buf); tt_int_op(n, ==, 1); diff --git a/wepoll.c b/wepoll.c index 514deffe..1ddb288e 100644 --- a/wepoll.c +++ b/wepoll.c @@ -1877,7 +1877,7 @@ int sock_feed_event(port_state_t* port_state, if (epoll_events == 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. */ if (sock_state->user_events & EPOLLONESHOT) sock_state->user_events = 0;