summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c2
-rw-r--r--src/alloc.h2
-rw-r--r--src/bftw.c2
-rw-r--r--src/color.c2
-rw-r--r--src/expr.h2
-rw-r--r--src/opt.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 223d737..779e1d7 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -108,7 +108,7 @@ void *reserve(void *ptr, size_t align, size_t size, size_t count) {
size_t old_size = size * count;
// Capacity is doubled every power of two, from 0→1, 1→2, 2→4, etc.
- // If we stayed within the same size class, re-use ptr.
+ // If we stayed within the same size class, reuse ptr.
if (count & (count - 1)) {
// Tell sanitizers about the new array element
sanitize_alloc((char *)ptr + old_size, size);
diff --git a/src/alloc.h b/src/alloc.h
index 7b97b8c..9bab01b 100644
--- a/src/alloc.h
+++ b/src/alloc.h
@@ -350,7 +350,7 @@ void *varena_alloc(struct varena *varena, size_t count);
* @param ptr
* The object to resize.
* @param old_count
- * The old array lenth.
+ * The old array length.
* @param new_count
* The new array length.
* @return
diff --git a/src/bftw.c b/src/bftw.c
index 0186e3f..61193d5 100644
--- a/src/bftw.c
+++ b/src/bftw.c
@@ -448,7 +448,7 @@ static void bftw_queue_rebalance(struct bftw_queue *queue, bool async) {
}
}
-/** Detatch the next waiting file. */
+/** Detach the next waiting file. */
static void bftw_queue_detach(struct bftw_queue *queue, struct bftw_file *file, bool async) {
bfs_assert(!file->ioqueued);
diff --git a/src/color.c b/src/color.c
index 7f653b0..1ee6662 100644
--- a/src/color.c
+++ b/src/color.c
@@ -31,7 +31,7 @@
struct esc_seq {
/** The length of the escape sequence. */
size_t len;
- /** The escape sequence iteself, without a terminating NUL. */
+ /** The escape sequence itself, without a terminating NUL. */
char seq[];
};
diff --git a/src/expr.h b/src/expr.h
index f14b936..871b120 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -146,7 +146,7 @@ struct bfs_expr {
/** Total time spent running this predicate. */
struct timespec elapsed;
- /** Auxilliary data for the evaluation function. */
+ /** Auxiliary data for the evaluation function. */
union {
/** Child expressions. */
struct bfs_exprs children;
diff --git a/src/opt.c b/src/opt.c
index aa41a6a..b50c1ef 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -122,7 +122,7 @@ static const char *const pred_names[] = {
};
/**
- * A contrained integer range.
+ * A constrained integer range.
*/
struct df_range {
/** The (inclusive) minimum value. */