From 003e0ff625ea5096cd9cbaaa3fd769f27f6e1a61 Mon Sep 17 00:00:00 2001 From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Date: Thu, 11 Apr 2019 17:23:35 +0300 Subject: [PATCH] swim: fix typos in the code After turning on a spell checker there were found lots of typos. The commit fixes them. --- src/lib/swim/swim.c | 8 ++++---- src/lib/swim/swim.h | 2 +- test/unit/swim_test_transport.c | 2 +- test/unit/swim_test_transport.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/swim/swim.c b/src/lib/swim/swim.c index 1cdc0cb479..4d591f63f8 100644 --- a/src/lib/swim/swim.c +++ b/src/lib/swim/swim.c @@ -228,7 +228,7 @@ struct swim_member { struct sockaddr_in addr; /** * A unique identifier of the member. Is used as a key in - * the mebmers table. + * the members table. */ struct tt_uuid uuid; /** @@ -884,7 +884,7 @@ swim_decrease_event_ttl(struct swim *swim) /** * Once per specified timeout trigger a next round step. In round - * step a next memeber is taken from the round queue and a round + * step a next member is taken from the round queue and a round * message is sent to him. One member per step. */ static void @@ -1225,7 +1225,7 @@ static int swim_process_dissemination(struct swim *swim, const char **pos, const char *end) { say_verbose("SWIM %d: process dissemination", swim_fd(swim)); - const char *prefix = "invald dissemination message:"; + const char *prefix = "invalid dissemination message:"; return swim_process_members(swim, prefix, pos, end); } @@ -1237,7 +1237,7 @@ swim_process_quit(struct swim *swim, const char **pos, const char *end, const struct tt_uuid *uuid) { say_verbose("SWIM %d: process quit", swim_fd(swim)); - const char *prefix = "invald quit message:"; + const char *prefix = "invalid quit message:"; uint32_t size; if (swim_decode_map(pos, end, &size, prefix, "root") != 0) return -1; diff --git a/src/lib/swim/swim.h b/src/lib/swim/swim.h index c4026f4779..09d933b83c 100644 --- a/src/lib/swim/swim.h +++ b/src/lib/swim/swim.h @@ -144,7 +144,7 @@ swim_probe_member(struct swim *swim, const char *uri); * @a swim is used. * * @retval 0 Success. The broadcast packet was scheduled and at - * least one suitable intefrace was detected. But it does + * least one suitable interface was detected. But it does * not mean, that the packet will be sent successfully. * @retval -1 Error. OOM, or there was not found an interface, * supporting IPv4. diff --git a/test/unit/swim_test_transport.c b/test/unit/swim_test_transport.c index 8083de2653..8ad4343405 100644 --- a/test/unit/swim_test_transport.c +++ b/test/unit/swim_test_transport.c @@ -221,7 +221,7 @@ swim_transport_recv(struct swim_transport *transport, void *buffer, size_t size, struct sockaddr *addr, socklen_t *addr_size) { /* - * Pop a packet from a receving queue. + * Pop a packet from a receiving queue. */ struct swim_fd *dst = &swim_fd[transport->fd - FAKE_FD_BASE]; assert(dst->is_opened); diff --git a/test/unit/swim_test_transport.h b/test/unit/swim_test_transport.h index 9248f0e982..d751efe83d 100644 --- a/test/unit/swim_test_transport.h +++ b/test/unit/swim_test_transport.h @@ -35,7 +35,7 @@ struct ev_loop; /** * SWIM test_transport implements a 'fake' file descriptors table - * in user space in orider to get the full control over UDP + * in user space in order to get the full control over UDP * sockets, used in core SWIM code. Fake fds are used to provide a * capability to set necessary loss level, delay, reorders. */ @@ -61,7 +61,7 @@ void swim_test_transport_unblock_fd(int fd); /** - * Drop rate of incomming and outgoing packets. Note, that even if + * Drop rate of incoming and outgoing packets. Note, that even if * a packet is dropped on send, the node, owning @a fd, still * thinks, that the packet is sent. It is not a sender-visible * error. -- GitLab