From 868ff9ad5bc87fbc4b036ba80abc8eee6963686b Mon Sep 17 00:00:00 2001 From: luz paz Date: Sun, 4 Jul 2021 08:21:40 -0400 Subject: [PATCH] Fix trivial typos Found via `codespell -q 3` --- xcf.c | 8 ++++---- xcf_names.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xcf.c b/xcf.c index d929a0e..0494fc0 100644 --- a/xcf.c +++ b/xcf.c @@ -178,7 +178,7 @@ static uint32_t xcf_strlen(const char *value) } -// functions for writing to a file, taking endianess into account +// functions for writing to a file, taking endianness into account static int xcf_write_uint8(XCF *xcf, const uint8_t value) __attribute__ ((warn_unused_result)); static int xcf_write_uint8(XCF *xcf, const uint8_t value) @@ -475,7 +475,7 @@ static int xcf_write_layer_header(XCF *xcf) CHECK_IO(xcf, xcf_write_uint32(xcf, 8), 1); CHECK_IO(xcf, xcf_write_uint32(xcf, xcf->child.p_offset_x), 1); CHECK_IO(xcf, xcf_write_uint32(xcf, xcf->child.p_offset_y), 1); - // thses properties were added in 2.10.0 (i presume version 4?) + // these properties were added in 2.10.0 (i presume version 4?) // if the user set composite mode or space they should be >= 0 and affect min_version // if they are < 0 then only write them if version >= 4 if(xcf->image.version >= 4 @@ -510,7 +510,7 @@ static int xcf_write_layer_header(XCF *xcf) CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // type CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // size - // the hierarchy struct comes rigth after the layer + // the hierarchy struct comes right after the layer const uint64_t current_pos = ftell(xcf->fd); CHECK_IO(xcf, xcf_write_pointer(xcf, current_pos + 2 * xcf_pointer_size(xcf)), 1); CHECK_IO(xcf, xcf_write_pointer(xcf, 0), 1); // pointer to the layer mask, which we don't support @@ -569,7 +569,7 @@ static int xcf_write_channel_header(XCF *xcf) CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // type CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // size - // the hierarchy struct comes rigth after the layer + // the hierarchy struct comes right after the layer const uint64_t current_pos = ftell(xcf->fd); CHECK_IO(xcf, xcf_write_pointer(xcf, current_pos + xcf_pointer_size(xcf)), 1); diff --git a/xcf_names.h b/xcf_names.h index 0b46900..ed9817c 100644 --- a/xcf_names.h +++ b/xcf_names.h @@ -1,7 +1,7 @@ #pragma once #ifndef XCF_INTERNAL_INCLUDES -#error only "xcf.h" should be included diretly +#error only "xcf.h" should be included directly #endif #include "xcf.h"