summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar/write.c
diff options
context:
space:
mode:
authorbcr <bcr@FreeBSD.org>2011-05-20 11:29:09 +0000
committerbcr <bcr@FreeBSD.org>2011-05-20 11:29:09 +0000
commit30d22af31d89d674b7b2fd236867da2b2a50f439 (patch)
tree6c7de512e3d66edd457187f46475a8a27e41b5b5 /usr.bin/ar/write.c
parenta2cf5c4542abc290730ebeceba14a0460a5d1c3e (diff)
downloadFreeBSD-src-30d22af31d89d674b7b2fd236867da2b2a50f439.zip
FreeBSD-src-30d22af31d89d674b7b2fd236867da2b2a50f439.tar.gz
Correct typos in comments, no functional changes.
Found by: codespell Reviewed by: kaiw MFC after: 1 week
Diffstat (limited to 'usr.bin/ar/write.c')
-rw-r--r--usr.bin/ar/write.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ar/write.c b/usr.bin/ar/write.c
index d27a767..5b6d369 100644
--- a/usr.bin/ar/write.c
+++ b/usr.bin/ar/write.c
@@ -113,7 +113,7 @@ ar_mode_A(struct bsdar *bsdar)
/*
* Create object from file, return created obj upon success, or NULL
* 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 *
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 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.
*/
goto tail;
@@ -418,7 +418,7 @@ write_archive(struct bsdar *bsdar, char mode)
if (mode == 'A') {
/*
* 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.
*/
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,
- * sliently insert objects at tail.
+ * silently insert objects at tail.
*/
if (pos == NULL)
bsdar->options &= ~(AR_A | AR_B);
@@ -699,7 +699,7 @@ create_symtab_entry(struct bsdar *bsdar, void *maddr, size_t size)
return;
}
if (elf_kind(e) != ELF_K_ELF) {
- /* Sliently ignore non-elf member. */
+ /* Silently ignore non-elf member. */
elf_end(e);
return;
}
OpenPOWER on IntegriCloud