From c16b914a728f2786aaa4e1c44c092c3faaf1df48 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 10 Dec 2016 16:56:47 +0100 Subject: bpfc: make verbose parameter boolean Verbose mode is a boolean option, so make the variable and parameters carrying it of type bool. Signed-off-by: Tobias Klauser --- bpf_parser.y | 4 ++-- bpfc.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bpf_parser.y b/bpf_parser.y index 6f5f2b0..5082dd2 100644 --- a/bpf_parser.y +++ b/bpf_parser.y @@ -27,7 +27,7 @@ #include "die.h" #include "cpp.h" -int compile_filter(char *file, int verbose, int bypass, int format, +int compile_filter(char *file, bool verbose, int bypass, int format, bool invoke_cpp, char *const cpp_argv[]); static int curr_instr = 0; @@ -734,7 +734,7 @@ static void pretty_printer(const struct sock_fprog *prog, int format) } } -int compile_filter(char *file, int verbose, int bypass, int format, +int compile_filter(char *file, bool verbose, int bypass, int format, bool invoke_cpp, char *const cpp_argv[]) { int i; diff --git a/bpfc.c b/bpfc.c index bf14147..562c463 100644 --- a/bpfc.c +++ b/bpfc.c @@ -40,7 +40,7 @@ static const char *copyright = "Please report bugs to