mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +01:00
Fix typos in source comments
Found by codespell.
This commit is contained in:
parent
0acd86f6eb
commit
2fb7200d45
@ -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.
|
||||
*
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user