From 2fb7200d4505dbd4ec44c9937e86652a30eb782e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 23 Oct 2011 19:27:44 +0200 Subject: [PATCH] Fix typos in source comments Found by codespell. --- src/heapsort.c | 2 +- src/nlist.c | 6 +++--- src/pidfile.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/heapsort.c b/src/heapsort.c index 79f98d4..2479cb0 100644 --- a/src/heapsort.c +++ b/src/heapsort.c @@ -86,7 +86,7 @@ * Select the top of the heap and 'heapify'. Since by far the most expensive * action is the call to the compar function, a considerable optimization * in the average case can be achieved due to the fact that k, the displaced - * elememt, is ususally quite small, so it would be preferable to first + * elememt, is usually quite small, so it would be preferable to first * heapify, always maintaining the invariant that the larger child is copied * over its parent's record. * diff --git a/src/nlist.c b/src/nlist.c index 0fcf324..7f9ed96 100644 --- a/src/nlist.c +++ b/src/nlist.c @@ -138,7 +138,7 @@ __aout_fdnlist(fd, list) /* * Map the whole a.out file into our address space. - * We then find the string table withing this area. + * We then find the string table within this area. * We do not just mmap the string table, as it probably * does not start at a page boundary - we save ourselves a * lot of nastiness by mmapping the whole file. @@ -227,14 +227,14 @@ __elf_is_okay__(ehdr) * We need to check magic, class size, endianess, * and version before we look at the rest of the * Elf_Ehdr structure. These few elements are - * represented in a machine independant fashion. + * represented in a machine independent fashion. */ if (IS_ELF(*ehdr) && ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) { - /* Now check the machine dependant header */ + /* Now check the machine dependent header */ if (ehdr->e_machine == ELF_TARG_MACH && ehdr->e_version == ELF_TARG_VER) retval = 1; diff --git a/src/pidfile.c b/src/pidfile.c index e93d323..4e46367 100644 --- a/src/pidfile.c +++ b/src/pidfile.c @@ -109,7 +109,7 @@ pidfile_open(const char *path, mode_t mode, pid_t *pidptr) /* * Open the PID file and obtain exclusive lock. - * We truncate PID file here only to remove old PID immediatelly, + * We truncate PID file here only to remove old PID immediately, * PID file will be truncated again in pidfile_write(), so * pidfile_write() can be called multiple times. */ -- 2.47.3