summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2020-08-22 10:49:37 -0400
committerPaul Moore <paul@paul-moore.com>2020-09-02 10:39:48 -0400
commit2693e416142bb5da10d74700595d69ddaae071cd (patch)
tree6e7907d1451e389d573bf11a6ef8cd05077b33b3 /tools
parent00b858adc2866544d93af5d2d24086223e4363e8 (diff)
downloadlibseccomp-2693e416142bb5da10d74700595d69ddaae071cd.tar.gz
all: run ./tools/check-syntax over the code
This patch updates the code for the newly added spell checking. Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/scmp_bpf_sim.c2
-rw-r--r--tools/util.c16
2 files changed, 9 insertions, 9 deletions
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)