]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Fix typos in source comments
authorGuillem Jover <guillem@hadrons.org>
Sun, 23 Oct 2011 17:27:44 +0000 (19:27 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sun, 23 Oct 2011 17:28:14 +0000 (19:28 +0200)
Found by codespell.

src/heapsort.c
src/nlist.c
src/pidfile.c

index 79f98d4a67f677e4a62f3e3b495a6312cda3f91d..2479cb0dc88442fd61776292240e466f09b24b8a 100644 (file)
@@ -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.
  *
index 0fcf324fd5345065d2842807afdf7e401d2edbcf..7f9ed96720b6db146585b4dc3102ec3ec05ef4e9 100644 (file)
@@ -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;
index e93d323d2f5b112543da873e8931bc7c78564e4a..4e46367add77a5dec4314d91283a6a1d080af6b4 100644 (file)
@@ -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.
         */