Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
lib/ipc_sysv_mq.c | 4 ++--
lib/ipc_us.c | 2 +-
lib/ipcs.c | 6 +++---
lib/log_blackbox.c | 2 +-
lib/ringbuffer.c | 8 ++++----
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/lib/ipc_sysv_mq.c b/lib/ipc_sysv_mq.c
index 583d15d..f2f4d16 100644
--- a/lib/ipc_sysv_mq.c
+++ b/lib/ipc_sysv_mq.c
@@ -83,7 +83,7 @@ retry_creating_the_q:
if (res != 0) {
res = -errno;
qb_util_perror(LOG_ERR,
- "error modifing the SYSV message queue");
+ "error modifying the SYSV message queue");
return res;
}
@@ -106,7 +106,7 @@ static int32_t sysv_split_and_send(int32_t q, const void *msg_ptr,
to_send_now = QB_MIN(msg_len - sent, MY_DATA_SIZE);
to_send_next = msg_len - (sent + to_send_now);
/* receiver used the ID to check to see if there
- * is more to recieve for this message.
+ * is more to receive for this message.
*/
if (last_chunk) {
buf.id = to_send_next + 1;
diff --git a/lib/ipc_us.c b/lib/ipc_us.c
index 45f33b1..e21f25d 100644
--- a/lib/ipc_us.c
+++ b/lib/ipc_us.c
@@ -471,7 +471,7 @@ int32_t qb_ipcs_us_publish(struct qb_ipcs_service * s)
}
/*
- * Allow eveyrone to write to the socket since the IPC layer handles
+ * Allow everyone to write to the socket since the IPC layer handles
* security automatically
*/
#if !defined(QB_LINUX)
diff --git a/lib/ipcs.c b/lib/ipcs.c
index 36ef3ae..a086fbe 100644
--- a/lib/ipcs.c
+++ b/lib/ipcs.c
@@ -180,7 +180,7 @@ void qb_ipcs_unref(struct qb_ipcs_service *s)
assert(s->ref_count > 0);
free_it = qb_atomic_int_dec_and_test(&s->ref_count);
if (free_it) {
- qb_util_log(LOG_DEBUG, "%s() - destorying", __func__);
+ qb_util_log(LOG_DEBUG, "%s() - destroying", __func__);
for (pos = s->connections.next, n = pos->next;
pos != &s->connections; pos = n, n = pos->next) {
c = qb_list_entry(pos, struct qb_ipcs_connection, list);
@@ -446,7 +446,7 @@ void qb_ipcs_disconnect(struct qb_ipcs_connection *c)
if (res == 0) {
qb_ipcs_connection_unref(c);
} else {
- /* ok, so they want the connection_closed
+ /* OK, so they want the connection_closed
* function re-run */
rerun_job = (qb_loop_job_dispatch_fn)qb_ipcs_disconnect;
res = c->service->poll_fns.job_add(QB_LOOP_LOW, c,
@@ -503,7 +503,7 @@ static int32_t _process_request_(struct qb_ipcs_connection *c,
res = -ESHUTDOWN;
} else {
res = c->service->serv_fns.msg_process(c, hdr, hdr->size);
- /* 0 == good, negitive == backoff */
+ /* 0 == good, negative == backoff */
if (res < 0) {
res = -ENOBUFS;
} else {
diff --git a/lib/log_blackbox.c b/lib/log_blackbox.c
index f199b1f..1e21f74 100644
--- a/lib/log_blackbox.c
+++ b/lib/log_blackbox.c
@@ -38,7 +38,7 @@ static void _blackbox_reload(int32_t target)
/* <u32> file lineno
* <u32> function name length
* <string> function name
- * <u32> buffer lenght
+ * <u32> buffer length
* <string> buffer
*/
static void _blackbox_logger(int32_t target,
diff --git a/lib/ringbuffer.c b/lib/ringbuffer.c
index 94732eb..93b0857 100644
--- a/lib/ringbuffer.c
+++ b/lib/ringbuffer.c
@@ -57,7 +57,7 @@ do { \
} while (0)
/*
- * move the write pointer to the next 32 byte boundry
+ * move the write pointer to the next 32 byte boundary
* write_pt goes in 4 bytes (sizeof(uint32_t))
*/
/*
@@ -152,7 +152,7 @@ _qb_rb_open(const char *name, size_t real_size, uint32_t flags,
}
/* Create the shared_data memory segment for the actual ringbuffer.
- * They have to be seperate.
+ * They have to be separate.
*/
if (flags & QB_RB_FLAG_CREATE) {
snprintf(filename, PATH_MAX, "%s-data", name);
@@ -380,7 +380,7 @@ void *qb_rb_chunk_alloc(qb_ringbuffer_t * rb, size_t len)
idx_step(write_pt);
/*
- * return a pointer to the begining of the chunk data
+ * return a pointer to the beginning of the chunk data
*/
return (void *)&rb->shared_data[write_pt];
@@ -606,7 +606,7 @@ ssize_t qb_rb_write_to_file(qb_ringbuffer_t * rb, int32_t fd)
}
written_size += result;
- qb_util_log(LOG_DEBUG, " writting total of: %zd\n", written_size);
+ qb_util_log(LOG_DEBUG, " writing total of: %zd\n", written_size);
return written_size;
}
--
1.7.5.2