mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
Fix remaining codespell warnings
Those that codespell have a few variants for: ./soccr/soccr.c:219: thise ==> these, this ./soccr/soccr.c:444: sence ==> sense, since ./criu/net.c:665: ot ==> to, of, or ./criu/net.c:775: ot ==> to, of, or ./criu/files.c:1244: wan't ==> want, wasn't ./criu/kerndat.c:1141: happend ==> happened, happens, happen ./criu/mount-v2.c:781: carefull ==> careful, carefully ./test/zdtm/static/socket_aio.c:54: Chiled ==> Child, chilled ./test/zdtm/static/socket_listen6.c:73: Chiled ==> Child, chilled ./test/zdtm/static/socket_listen.c:73: Chiled ==> Child, chilled ./test/zdtm/static/socket_listen4v6.c:73: Chiled ==> Child, chilled ./test/zdtm/static/sk-unix-dgram-ghost.c:201: childs ==> children, child's ./test/zdtm/static/sk-unix-dgram-ghost.c:205: childs ==> children, child's ./compel/arch/x86/src/lib/infect.c:297: automatical ==> automatically, automatic, automated While at it, do some other minor fixes in the same lines. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
0194ed392f
commit
e7b1c85791
9 changed files with 13 additions and 13 deletions
|
|
@ -303,9 +303,9 @@ static int corrupt_extregs(pid_t pid)
|
|||
|
||||
/*
|
||||
* Error log-level as:
|
||||
* - not intended to be used outside of testing,
|
||||
* - not intended to be used outside of testing;
|
||||
* - zdtm.py will grep it auto-magically from logs
|
||||
* (and the seed will be known from an automatical testing)
|
||||
* (and the seed will be known from automatic testing).
|
||||
*/
|
||||
pr_err("Corrupting %s for %d, seed %u\n", use_xsave ? "xsave" : "fpuregs", pid, init_seed);
|
||||
|
||||
|
|
|
|||
|
|
@ -1254,7 +1254,7 @@ int close_old_fds(void)
|
|||
int fd, ret;
|
||||
|
||||
/**
|
||||
* Close previous /proc/self/ service fd, as we don't wan't to reuse it
|
||||
* Close previous /proc/self/ service fd, as we don't want to reuse it
|
||||
* from a different task. Also there can be some junk fd in it's place
|
||||
* after we've moved our service fds (e.g. from other task of parents
|
||||
* shared fdtable), we need to close it before opendir_proc() below.
|
||||
|
|
|
|||
|
|
@ -1306,7 +1306,7 @@ static int kerndat_has_pidfd_getfd(void)
|
|||
if (val_b == val_a) {
|
||||
kdat.has_pidfd_getfd = true;
|
||||
} else {
|
||||
/* If val_b != val_a then something unexpected happend. */
|
||||
/* If val_b != val_a, something unexpected happened. */
|
||||
pr_err("Unexpected value read from socket\n");
|
||||
ret = -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -778,7 +778,7 @@ static int populate_mnt_ns_v2(void)
|
|||
* all siblings which it overmounts (see __mnt_resort_children). The function
|
||||
* mnt_tree_for_each is effectively DFS (in case we don't postpone), thus all
|
||||
* descendants of all mounts which we sibling-overmount are mounted before us.
|
||||
* Be carefull, we can't postpone (return >0) from this function because of it.
|
||||
* Be careful, we can't postpone (return >0) from this function because of it.
|
||||
*/
|
||||
static int move_mount_to_tree(struct mount_info *mi)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -662,7 +662,7 @@ static int dump_macvlan(NetDeviceEntry *nde, struct cr_imgset *imgset, struct nl
|
|||
|
||||
ret = nla_parse_nested(data, IFLA_MACVLAN_FLAGS, info[IFLA_INFO_DATA], NULL);
|
||||
if (ret < 0) {
|
||||
pr_err("failed ot parse macvlan data\n");
|
||||
pr_err("failed to parse macvlan data\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -772,7 +772,7 @@ static int dump_sit(NetDeviceEntry *nde, struct cr_imgset *imgset, struct nlattr
|
|||
pr_info("Some data for SIT provided\n");
|
||||
ret = nla_parse_nested(data, IFLA_IPTUN_MAX, info[IFLA_INFO_DATA], NULL);
|
||||
if (ret < 0) {
|
||||
pr_err("failed ot parse sit data\n");
|
||||
pr_err("failed to parse sit data\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 reset. In thise case a sent queue
|
||||
/* A connection could be reset. In this 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
|
||||
|
|
@ -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 -- implemented in CRIU, makes sence to have it here too */
|
||||
/* FIXME -- implemented in CRIU, makes sense to have it here too */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -198,11 +198,11 @@ int main(int argc, char **argv)
|
|||
|
||||
test_msg("C/R complete\n");
|
||||
|
||||
/* let childs to send data to server socket */
|
||||
/* Let children send data to server socket. */
|
||||
for (i = 0; i < PROCESSES_NUM; i++)
|
||||
task_waiter_complete(&t[i], 2);
|
||||
|
||||
/* wait childs for send data */
|
||||
/* Wait for children to send data. */
|
||||
for (i = 0; i < PROCESSES_NUM; i++)
|
||||
task_waiter_wait4(&t[i], 3);
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (pid == 0) {
|
||||
/*
|
||||
* Chiled is client of TCP connection
|
||||
* Child is client of TCP connection.
|
||||
*/
|
||||
close(fd_s);
|
||||
fd = tcp_init_client(AF_INET, "127.0.0.1", port);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (pid == 0) {
|
||||
/*
|
||||
* Chiled is client of TCP connection
|
||||
* Child is client of TCP connection.
|
||||
*/
|
||||
close(fd_s);
|
||||
fd = tcp_init_client(ZDTM_FAMILY, "localhost", port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue