Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/soccr
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2022-03-31 04:45:16 +0300
committerAndrei Vagin <avagin@gmail.com>2022-04-29 03:53:52 +0300
commit0194ed392ffe4e936dca031fbecafa417d218eec (patch)
tree20f2af19767720a9576d469cb572bc6cdd9f4451 /soccr
parent3f180047783486c003609328af584b060d3c545c (diff)
Fix some codespell warnings
Brought to you by codespell -w (using codespell v2.1.0). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'soccr')
-rw-r--r--soccr/soccr.c8
-rw-r--r--soccr/soccr.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/soccr/soccr.c b/soccr/soccr.c
index 8be2d28e1..fb13a0d7b 100644
--- a/soccr/soccr.c
+++ b/soccr/soccr.c
@@ -216,7 +216,7 @@ static int refresh_sk(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, str
data->unsq_len = size;
if (data->state == TCP_CLOSE) {
- /* A connection could be reseted. In thise case a sent queue
+ /* A connection could be reset. In thise case a sent queue
* may contain some data. A user can't read this data, so let's
* ignore them. Otherwise we will need to add a logic whether
* the send queue contains a fin packet or not and decide whether
@@ -227,7 +227,7 @@ static int refresh_sk(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, str
data->outq_len = 0;
}
- /* Don't account the fin packet. It doesn't countain real data. */
+ /* Don't account the fin packet. It doesn't contain real data. */
if ((1 << data->state) & (SNDQ_FIRST_FIN | SNDQ_SECOND_FIN)) {
if (data->outq_len)
data->outq_len--;
@@ -441,7 +441,7 @@ union libsoccr_addr *libsoccr_get_addr(struct libsoccr_sk *sk, int self, unsigne
if (flags & ~GET_SA_FLAGS)
return NULL;
- /* FIXME -- implemeted in CRIU, makes sence to have it here too */
+ /* FIXME -- implemented in CRIU, makes sence to have it here too */
return NULL;
}
@@ -503,7 +503,7 @@ static int libsoccr_set_sk_data_noq(struct libsoccr_sk *sk, struct libsoccr_sk_d
if (mstate & (RCVQ_FIRST_FIN | RCVQ_SECOND_FIN))
data->inq_seq--;
- /* outq_seq is adjusted due to not accointing the fin packet */
+ /* outq_seq is adjusted due to not accounting the fin packet */
if (mstate & (SNDQ_FIRST_FIN | SNDQ_SECOND_FIN))
data->outq_seq--;
diff --git a/soccr/soccr.h b/soccr/soccr.h
index e7091e591..68ddb577b 100644
--- a/soccr/soccr.h
+++ b/soccr/soccr.h
@@ -171,8 +171,8 @@ int libsoccr_save(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigne
* Get a pointer on the contents of queues. The amount of bytes is
* determined from the filled libsoccr_sk_data by queue_id.
*
- * For TCP_RECV_QUEUE the lenght is .inq_len
- * For TCP_SEND_QUEUE the lenght is .outq_len
+ * For TCP_RECV_QUEUE the length is .inq_len
+ * For TCP_SEND_QUEUE the length is .outq_len
*
* For any other queues returns NULL.
*