From 5f1ca9b98226dc2417a50af15b77d5a5cfd6837a Mon Sep 17 00:00:00 2001 From: uqs Date: Sat, 7 Jan 2012 16:09:33 +0000 Subject: Spelling fixes for sbin/ --- sbin/hastd/activemap.c | 4 ++-- sbin/hastd/hast_compression.c | 2 +- sbin/hastd/hastd.c | 2 +- sbin/hastd/lzf.h | 4 ++-- sbin/hastd/primary.c | 2 +- sbin/hastd/proto.c | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'sbin/hastd') diff --git a/sbin/hastd/activemap.c b/sbin/hastd/activemap.c index e388bb2..64b95e3 100644 --- a/sbin/hastd/activemap.c +++ b/sbin/hastd/activemap.c @@ -219,7 +219,7 @@ keepdirty_add(struct activemap *amp, int extent) kd = keepdirty_find(amp, extent); if (kd != NULL) { /* - * Only move element at the begining. + * Only move element at the beginning. */ TAILQ_REMOVE(&->am_keepdirty, kd, kd_next); TAILQ_INSERT_HEAD(&->am_keepdirty, kd, kd_next); @@ -573,7 +573,7 @@ activemap_sync_rewind(struct activemap *amp) return; } /* - * Mark that we want to start synchronization from the begining. + * Mark that we want to start synchronization from the beginning. */ amp->am_syncoff = -1; } diff --git a/sbin/hastd/hast_compression.c b/sbin/hastd/hast_compression.c index 4f4a93a..f524eb1 100644 --- a/sbin/hastd/hast_compression.c +++ b/sbin/hastd/hast_compression.c @@ -55,7 +55,7 @@ allzeros(const void *data, size_t size) * Because inside the loop we don't check at every step, we would * get an answer only after walking through entire buffer. * To return early if the buffer doesn't contain all zeros, we probe - * 8 bytes at the begining, in the middle and at the end of the buffer + * 8 bytes at the beginning, in the middle and at the end of the buffer * first. */ diff --git a/sbin/hastd/hastd.c b/sbin/hastd/hastd.c index fdb1c5b..e2f1f8c 100644 --- a/sbin/hastd/hastd.c +++ b/sbin/hastd/hastd.c @@ -786,7 +786,7 @@ listen_accept(struct hastd_listen *lst) pjdlog_debug(2, "%s: resource=%s", raddr, resname); token = nv_get_uint8_array(nvin, &size, "token"); /* - * NULL token means that this is first conection. + * NULL token means that this is first connection. */ if (token != NULL && size != sizeof(res->hr_token)) { pjdlog_error("Received token of invalid size from %s (expected %zu, got %zu).", diff --git a/sbin/hastd/lzf.h b/sbin/hastd/lzf.h index 92fdd0f..d9563ef 100644 --- a/sbin/hastd/lzf.h +++ b/sbin/hastd/lzf.h @@ -146,7 +146,7 @@ lzf_decompress (const void *const in_data, unsigned int in_len, /* * Avoid assigning values to errno variable? for some embedding purposes - * (linux kernel for example), this is neccessary. NOTE: this breaks + * (linux kernel for example), this is necessary. NOTE: this breaks * the documentation in lzf.h. */ #ifndef AVOID_ERRNO @@ -167,7 +167,7 @@ lzf_decompress (const void *const in_data, unsigned int in_len, * and return EINVAL if the input stream has been corrupted. This * only shields against overflowing the input buffer and will not * detect most corrupted streams. - * This check is not normally noticable on modern hardware + * This check is not normally noticeable on modern hardware * (<1% slowdown), but might slow down older cpus considerably. */ #ifndef CHECK_INPUT diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 243269d..4dbfc06 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -933,7 +933,7 @@ hastd_primary(struct hast_resource *res) /* * Create the guard thread first, so we can handle signals from the - * very begining. + * very beginning. */ error = pthread_create(&td, NULL, guard_thread, res); PJDLOG_ASSERT(error == 0); diff --git a/sbin/hastd/proto.c b/sbin/hastd/proto.c index 72c8c75..452f82f 100644 --- a/sbin/hastd/proto.c +++ b/sbin/hastd/proto.c @@ -131,7 +131,7 @@ proto_common_setup(const char *srcaddr, const char *dstaddr, /* * ret == 0 - success * ret == -1 - dstaddr is not for this protocol - * ret > 0 - right protocol, but an error occured + * ret > 0 - right protocol, but an error occurred */ if (ret >= 0) break; @@ -142,7 +142,7 @@ proto_common_setup(const char *srcaddr, const char *dstaddr, return (-1); } if (ret > 0) { - /* An error occured. */ + /* An error occurred. */ errno = ret; return (-1); } -- cgit v1.1