]> git.proxmox.com Git - mirror_libseccomp.git/commitdiff
bpf: mark static functions as static
authorPaul Moore <paul@paul-moore.com>
Fri, 24 Feb 2017 15:33:35 +0000 (10:33 -0500)
committerPaul Moore <paul@paul-moore.com>
Fri, 24 Feb 2017 15:33:35 +0000 (10:33 -0500)
Signed-off-by: Paul Moore <paul@paul-moore.com>
src/gen_bpf.c

index c9190564cd66c31f3dff1fe0092a79bb454d4ad0..dfaef4e98df063da2affcadf97684c4f55b2723c 100644 (file)
@@ -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);