Correct typos in comments, no functional changes.

Found by:	codespell
Reviewed by:	kaiw
MFC after:	1 week
This commit is contained in:
Benedict Reuschling 2011-05-20 11:29:09 +00:00
parent 588e8623d0
commit 6bef5d2865
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222122
3 changed files with 8 additions and 8 deletions

View File

@ -358,7 +358,7 @@ arscp_copy(int ifd, int ofd)
/* /*
* Add all modules of archive to current archive, if list != NULL, * Add all modules of archive to current archive, if list != NULL,
* only those modules speicifed in 'list' will be added. * only those modules specified in 'list' will be added.
*/ */
static void static void
arscp_addlib(char *archive, struct list *list) arscp_addlib(char *archive, struct list *list)
@ -545,7 +545,7 @@ arscp_end(int eval)
} }
/* /*
* Check if target spcified, i.e, whether OPEN or CREATE has been * Check if target specified, i.e, whether OPEN or CREATE has been
* issued by user. * issued by user.
*/ */
static int static int

View File

@ -109,7 +109,7 @@ main(int argc, char **argv)
bsdar->progname = "ar"; bsdar->progname = "ar";
/* Act like ranlib if our name ends in "ranlib"; this /* Act like ranlib if our name ends in "ranlib"; this
* accomodates arm-freebsd7.1-ranlib, bsdranlib, etc. */ * accommodates arm-freebsd7.1-ranlib, bsdranlib, etc. */
len = strlen(bsdar->progname); len = strlen(bsdar->progname);
if (len >= strlen("ranlib") && if (len >= strlen("ranlib") &&
strcmp(bsdar->progname + len - strlen("ranlib"), "ranlib") == 0) { strcmp(bsdar->progname + len - strlen("ranlib"), "ranlib") == 0) {

View File

@ -113,7 +113,7 @@ ar_mode_A(struct bsdar *bsdar)
/* /*
* Create object from file, return created obj upon success, or NULL * Create object from file, return created obj upon success, or NULL
* when an error occurs or the member is not newer than existing * when an error occurs or the member is not newer than existing
* one while -u is specifed. * one while -u is specified.
*/ */
static struct ar_obj * static struct ar_obj *
create_obj_from_file(struct bsdar *bsdar, const char *name, time_t mtime) create_obj_from_file(struct bsdar *bsdar, const char *name, time_t mtime)
@ -220,7 +220,7 @@ insert_obj(struct bsdar *bsdar, struct ar_obj *obj, struct ar_obj *pos)
if (pos == NULL || obj == pos) if (pos == NULL || obj == pos)
/* /*
* If the object to move happens to be the posistion obj, * If the object to move happens to be the position obj,
* or if there is not a pos obj, move it to tail. * or if there is not a pos obj, move it to tail.
*/ */
goto tail; goto tail;
@ -418,7 +418,7 @@ write_archive(struct bsdar *bsdar, char mode)
if (mode == 'A') { if (mode == 'A') {
/* /*
* Read objects from the target archive of ADDLIB command. * Read objects from the target archive of ADDLIB command.
* If there are members spcified in argv, read those members * If there are members specified in argv, read those members
* only, otherwise the entire archive will be read. * only, otherwise the entire archive will be read.
*/ */
read_objs(bsdar, bsdar->addlib, 1); read_objs(bsdar, bsdar->addlib, 1);
@ -438,7 +438,7 @@ write_archive(struct bsdar *bsdar, char mode)
/* /*
* If can't find `pos' specified by user, * If can't find `pos' specified by user,
* sliently insert objects at tail. * silently insert objects at tail.
*/ */
if (pos == NULL) if (pos == NULL)
bsdar->options &= ~(AR_A | AR_B); bsdar->options &= ~(AR_A | AR_B);
@ -699,7 +699,7 @@ create_symtab_entry(struct bsdar *bsdar, void *maddr, size_t size)
return; return;
} }
if (elf_kind(e) != ELF_K_ELF) { if (elf_kind(e) != ELF_K_ELF) {
/* Sliently ignore non-elf member. */ /* Silently ignore non-elf member. */
elf_end(e); elf_end(e);
return; return;
} }