From 7f0d9e61f40c669fca3cfd1e342fa8236c7220b7 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Sat, 20 May 2023 13:37:47 +0000 Subject: Fix all the remaining misspellings -- BZ 25337 --- time/asctime.c | 2 +- time/tst-clock.c | 2 +- time/tst-difftime.c | 2 +- time/tst-strptime2.c | 2 +- time/tzfile.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'time') diff --git a/time/asctime.c b/time/asctime.c index d0671030c8..7e2b102d40 100644 --- a/time/asctime.c +++ b/time/asctime.c @@ -41,7 +41,7 @@ asctime_internal (const struct tm *tp, char *buf, size_t buflen) /* We limit the size of the year which can be printed. Using the %d format specifier used the addition of 1900 would overflow the - number and a negative vaue is printed. For some architectures we + number and a negative value is printed. For some architectures we could in theory use %ld or an evern larger integer format but this would mean the output needs more space. This would not be a problem if the 'asctime_r' interface would be defined sanely and diff --git a/time/tst-clock.c b/time/tst-clock.c index 66f23adcba..74a583f261 100644 --- a/time/tst-clock.c +++ b/time/tst-clock.c @@ -110,7 +110,7 @@ do_test (void) /* XXX It's not yet a bug when this fails. */ clock_test (cl); else - printf("CPU clock unavailble, skipping test\n"); + printf("CPU clock unavailable, skipping test\n"); return result; } diff --git a/time/tst-difftime.c b/time/tst-difftime.c index 7d2db59ed4..4f0572eb01 100644 --- a/time/tst-difftime.c +++ b/time/tst-difftime.c @@ -30,7 +30,7 @@ test_difftime_helper (time_t t1, time_t t0, double exp_val) static int do_test (void) { - time_t t = 1383791700; /* Provide reproductible start value. */ + time_t t = 1383791700; /* Provide reproducible start value. */ /* Check if difftime works with current time. */ test_difftime_helper (t + 1800, t - 1800, 3600.0); diff --git a/time/tst-strptime2.c b/time/tst-strptime2.c index 8019e7f5d8..edd655e0e9 100644 --- a/time/tst-strptime2.c +++ b/time/tst-strptime2.c @@ -37,7 +37,7 @@ static bool verbose; Sign field consisting of a '+' or '-' sign, Hours field in two decimal digits, and optional Minutes field in two decimal digits. Optionally, - a ':' is used to seperate hours and minutes. + a ':' is used to separate hours and minutes. This function may write test strings with minutes values outside the valid range 00-59. These are invalid strings and useful for diff --git a/time/tzfile.c b/time/tzfile.c index 9e27eba4a7..a267eb652e 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -130,7 +130,7 @@ __tzfile_read (const char *file, size_t extra, char **extrap) { /* We must not allow to read an arbitrary file in a setuid program. So we fail for any file which is not in the - directory hierachy starting at TZDIR + directory hierarchy starting at TZDIR and which is not the system wide default TZDEFAULT. */ if (__libc_enable_secure && ((*file == '/' -- cgit 1.4.1