summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-02-24 10:33:35 -0500
committerPaul Moore <paul@paul-moore.com>2017-02-24 10:33:35 -0500
commit0d945be5b6d49248d91aa1a0555f749a8da9aaa7 (patch)
treec8086fd614207af91b3dc027836c518b68b0ef62
parentbee71b1c6493dba41725f53592184680958f09af (diff)
downloadlibseccomp-0d945be5b6d49248d91aa1a0555f749a8da9aaa7.tar.gz
bpf: mark static functions as static
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--src/gen_bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen_bpf.c b/src/gen_bpf.c
index c919056..dfaef4e 100644
--- a/src/gen_bpf.c
+++ b/src/gen_bpf.c
@@ -203,7 +203,7 @@ static struct bpf_blk *_hsh_find(const struct bpf_state *state, uint64_t h_val);
* Convert the endianess of the supplied value and return it to the caller.
*
*/
-uint16_t _htot16(const struct arch_def *arch, uint16_t val)
+static uint16_t _htot16(const struct arch_def *arch, uint16_t val)
{
if (arch->endian == ARCH_ENDIAN_LITTLE)
return htole16(val);
@@ -219,7 +219,7 @@ uint16_t _htot16(const struct arch_def *arch, uint16_t val)
* Convert the endianess of the supplied value and return it to the caller.
*
*/
-uint32_t _htot32(const struct arch_def *arch, uint32_t val)
+static uint32_t _htot32(const struct arch_def *arch, uint32_t val)
{
if (arch->endian == ARCH_ENDIAN_LITTLE)
return htole32(val);