diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/alloc.c | 2 | ||||
-rw-r--r-- | src/alloc.h | 2 | ||||
-rw-r--r-- | src/bftw.c | 2 | ||||
-rw-r--r-- | src/color.c | 2 | ||||
-rw-r--r-- | src/expr.h | 2 | ||||
-rw-r--r-- | src/opt.c | 2 |
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 @@ -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[]; }; @@ -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; @@ -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. */ |