From 2693e416142bb5da10d74700595d69ddaae071cd Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Sat, 22 Aug 2020 10:49:37 -0400 Subject: all: run ./tools/check-syntax over the code This patch updates the code for the newly added spell checking. Reviewed-by: Tom Hromatka Signed-off-by: Paul Moore --- tools/scmp_bpf_sim.c | 2 +- tools/util.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tools') diff --git a/tools/scmp_bpf_sim.c b/tools/scmp_bpf_sim.c index a381314..3b581c6 100644 --- a/tools/scmp_bpf_sim.c +++ b/tools/scmp_bpf_sim.c @@ -328,7 +328,7 @@ int main(int argc, char *argv[]) } } - /* adjust the endianess of sys_data to match the target */ + /* adjust the endianness of sys_data to match the target */ sys_data.nr = htot32(arch, sys_data.nr); sys_data.arch = htot32(arch, arch); sys_data.instruction_pointer = htot64(arch, diff --git a/tools/util.c b/tools/util.c index 5687b30..7da22f4 100644 --- a/tools/util.c +++ b/tools/util.c @@ -88,11 +88,11 @@ uint32_t arch = ARCH_NATIVE; /** - * Convert a 16-bit target integer into the host's endianess + * Convert a 16-bit target integer into the host's endianness * @param arch_token the architecture token * @param val the 16-bit integer * - * Convert the endianess of the supplied value and return it to the caller. + * Convert the endianness of the supplied value and return it to the caller. * */ uint16_t ttoh16(uint32_t arch_token, uint16_t val) @@ -104,11 +104,11 @@ uint16_t ttoh16(uint32_t arch_token, uint16_t val) } /** - * Convert a 32-bit target integer into the host's endianess + * Convert a 32-bit target integer into the host's endianness * @param arch_token the architecture token * @param val the 32-bit integer * - * Convert the endianess of the supplied value and return it to the caller. + * Convert the endianness of the supplied value and return it to the caller. * */ uint32_t ttoh32(uint32_t arch_token, uint32_t val) @@ -120,11 +120,11 @@ uint32_t ttoh32(uint32_t arch_token, uint32_t val) } /** - * Convert a 32-bit host integer into the target's endianess + * Convert a 32-bit host integer into the target's endianness * @param arch_token the architecture token * @param val the 32-bit integer * - * Convert the endianess of the supplied value and return it to the caller. + * Convert the endianness of the supplied value and return it to the caller. * */ uint32_t htot32(uint32_t arch_token, uint32_t val) @@ -136,11 +136,11 @@ uint32_t htot32(uint32_t arch_token, uint32_t val) } /** - * Convert a 64-bit host integer into the target's endianess + * Convert a 64-bit host integer into the target's endianness * @param arch_token the architecture token * @param val the 64-bit integer * - * Convert the endianess of the supplied value and return it to the caller. + * Convert the endianness of the supplied value and return it to the caller. * */ uint64_t htot64(uint32_t arch_token, uint64_t val) -- cgit v1.2.1