summaryrefslogtreecommitdiff
path: root/bpf_parser.y
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-12-17 11:51:25 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-12-17 11:51:25 +0100
commit6a95717c07d4b453531ebe52f55c6dcfa520dc80 (patch)
tree9a4691542f4212c07d1241c44ff512a44eaabe4c /bpf_parser.y
parent126e0038a73b38fac7b3e03173b2d791734cc497 (diff)
cpp: Constify cpp argv passed to cpp_exec
Pass argv as char *const argv[] as execvp expects it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'bpf_parser.y')
-rw-r--r--bpf_parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpf_parser.y b/bpf_parser.y
index 2c566a1..6f5f2b0 100644
--- a/bpf_parser.y
+++ b/bpf_parser.y
@@ -28,7 +28,7 @@
#include "cpp.h"
int compile_filter(char *file, int verbose, int bypass, int format,
- bool invoke_cpp, char **cpp_argv);
+ bool invoke_cpp, char *const cpp_argv[]);
static int curr_instr = 0;
@@ -735,7 +735,7 @@ static void pretty_printer(const struct sock_fprog *prog, int format)
}
int compile_filter(char *file, int verbose, int bypass, int format,
- bool invoke_cpp, char **cpp_argv)
+ bool invoke_cpp, char *const cpp_argv[])
{
int i;
struct sock_fprog res;