summaryrefslogtreecommitdiff
path: root/bpf.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-24 13:22:35 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-24 13:22:35 +0200
commit97d26b9ee4bffda96e74fd1379cdddd47adbaf49 (patch)
tree40bda8423baadbcb89b8f7c47acd6445dfdcc92e /bpf.h
parenta168c8c7b8d6f884775815ba45868689fe43774e (diff)
misc: fix some minor compile warnings all over
Some regarding unused parameter, some regarding signed/unsigned comparison. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpf.h')
-rw-r--r--bpf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bpf.h b/bpf.h
index 07631d6..942f54e 100644
--- a/bpf.h
+++ b/bpf.h
@@ -26,8 +26,9 @@ extern void bpf_parse_rules(char *rulefile, struct sock_fprog *bpf, uint32_t lin
extern void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf,
uint32_t link_type);
#else
-static inline void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf,
- uint32_t link_type)
+static inline void bpf_try_compile(const char *rulefile,
+ struct sock_fprog *bpf __maybe_unused,
+ uint32_t link_type __maybe_unused)
{
panic("Cannot open file %s!\n", rulefile);
}