From: Ville Skyta Date: Wed, 18 Dec 2013 15:26:24 +0000 (+0100) Subject: Spelling fixes. X-Git-Tag: cronie1.4.12~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb50abd6eb16657ab123a8dd756b3b38e841bda6;p=cronie Spelling fixes. Signed-off-by: Marcela Mašláňová --- diff --git a/anacron/lock.c b/anacron/lock.c index 7fd59e4..ea3c729 100644 --- a/anacron/lock.c +++ b/anacron/lock.c @@ -129,7 +129,7 @@ consider_job(job_rec *jr) period = days_last_month (); bypass = days_this_month (); break; - case 2: /* yearly, annualy */ + case 2: /* yearly, annually */ period = days_last_year (); bypass = days_this_year (); break; diff --git a/anacron/readtab.c b/anacron/readtab.c index 1b68cab..4dd7945 100644 --- a/anacron/readtab.c +++ b/anacron/readtab.c @@ -110,7 +110,7 @@ Return NULL if no more lines. static int job_arg_num(const char *ident) -/* Return the command-line-argument number refering to this job-identifier. +/* Return the command-line-argument number referring to this job-identifier. * If it isn't specified, return -1. */ { @@ -210,7 +210,7 @@ register_period_job(const char *periods, const char *delays, jr = obstack_alloc(&tab_o, sizeof(job_rec)); if (!strncmp ("@monthly", periods, 8)) { jr->named_period = 1; - } else if (!strncmp("@yearly", periods, 7) || !strncmp("@annualy", periods, 8)) { + } else if (!strncmp("@yearly", periods, 7) || !strncmp("@annually", periods, 9)) || !strncmp(/* backwards compat misspelling */"@annualy", periods, 8)) jr->named_period = 2; } else if (!strncmp ("@daily", periods, 6)) { jr->named_period = 3; diff --git a/man/crontab.5 b/man/crontab.5 index bfc8414..8165cab 100644 --- a/man/crontab.5 +++ b/man/crontab.5 @@ -253,7 +253,7 @@ The jobs in and .I /etc/crontab are system jobs, which are used usually for more than one user, thus, -additionaly the username is needed. MAILTO on the first line is +additionally the username is needed. MAILTO on the first line is optional. .SH EXAMPLE OF A JOB IN /etc/cron.d/job .nf diff --git a/src/cron.c b/src/cron.c index ec4ace7..d4d5b06 100644 --- a/src/cron.c +++ b/src/cron.c @@ -182,7 +182,7 @@ static void usage(void) { fprintf(stderr, "Options:\n"); fprintf(stderr, " -h print this message \n"); fprintf(stderr, " -i deamon runs without inotify support\n"); - fprintf(stderr, " -m off, or specify prefered client for sending mails\n"); + fprintf(stderr, " -m off, or specify preferred client for sending mails\n"); fprintf(stderr, " -n run in foreground\n"); fprintf(stderr, " -p permit any crontab\n"); fprintf(stderr, " -P use PATH=\"%s\"\n", _PATH_DEFPATH); diff --git a/src/database.c b/src/database.c index 61764d7..60135ac 100644 --- a/src/database.c +++ b/src/database.c @@ -327,7 +327,7 @@ void check_inotify_database(cron_db * old_db) { if (retval <= 0) { log_it("CRON", pid, "INOTIFY", "read failed", errno); - /* something fatal must have occured we have no other reasonable + /* something fatal must have occurred we have no other reasonable * way how to handle this failure than exit. */ (void) exit(ERROR_EXIT);