From 03bd205c3db6273d6b375bbf67436e2273a5eb3f Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 14 Oct 2021 00:05:32 +0200 Subject: [PATCH] Fix spelling mistakes found by codespell 2.0.0 Exception: (UVM global queu) > comm is 16 bytes (including the \0), so 15 characters. So as an > example of /proc/stat, this was actually right :-) --- README.md | 2 +- mx_getopt.c | 2 +- mxqadmin.c | 4 ++-- mxqd.c | 2 +- mxqsub.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a03004cd..532f3b50 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Those features may not be tested for every situation yet and may result in database corruption and/or failing jobs. #### changed `mxqd` default options -In devolopment builds `--no-log` is default (enable loggin with `--log`) +In devolopment builds `--no-log` is default (enable logging with `--log`) #### Development database access Devolopment builds default to use `[mxqdevel]` groups from mysql config files diff --git a/mx_getopt.c b/mx_getopt.c index 1e5da276..a92e3650 100644 --- a/mx_getopt.c +++ b/mx_getopt.c @@ -94,7 +94,7 @@ static int find_long_option_by_name(struct mx_option *options, char *name, char if(strncmp(name, options[i].long_opt, options[i]._long_len) != 0) continue; - /* if --long-name matches completly we are done */ + /* if --long-name matches completely we are done */ if(name[options[i]._long_len] == '\0') return i; diff --git a/mxqadmin.c b/mxqadmin.c index 92a2fe62..a6632c18 100644 --- a/mxqadmin.c +++ b/mxqadmin.c @@ -171,7 +171,7 @@ int _close_group_for_user(struct mx_mysql *mysql, uint64_t group_id, uint64_t us assert(res == 1); - mx_log_notice("closing group %lu succeded.", group_id); + mx_log_notice("closing group %lu succeeded.", group_id); return 0; } @@ -194,7 +194,7 @@ int _reopen_group_for_user(struct mx_mysql *mysql, uint64_t group_id, uint64_t u assert(res == 1); - mx_log_notice("opening group %lu succeded.", group_id); + mx_log_notice("opening group %lu succeeded.", group_id); return 0; } diff --git a/mxqd.c b/mxqd.c index c858746f..7ba5e6fd 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1545,7 +1545,7 @@ long start_user_with_least_running_global_slot_count(struct mxq_server *server) * only had enough free resources. * If so, set a flag that we don't start jobs for following users, if they already got their * fair share. - * Note, that glist->jobs_max ist the maximum number of jobs we are able to run, if we had + * Note, that glist->jobs_max is the maximum number of jobs we are able to run, if we had * free resources and is 0 for jobs, we are not able to run at all. * */ for (glist = ulist->groups; glist; glist = glist->next) { diff --git a/mxqsub.c b/mxqsub.c index 73d2d025..d432991d 100644 --- a/mxqsub.c +++ b/mxqsub.c @@ -949,7 +949,7 @@ int main(int argc, char *argv[]) exit(EX_CONFIG); } if (optctl.optarg[0] != '/') { - mx_log_crit("--workdir '%s': workdir is a relativ path. please use absolute path.", + mx_log_crit("--workdir '%s': workdir is a relative path. please use absolute path.", optctl.optarg); exit(EX_CONFIG); }