summaryrefslogtreecommitdiff
path: root/trafgen_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 /trafgen_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 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 24370ee..79a8439 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -590,8 +590,8 @@ void cleanup_packets(void)
free(packet_dyn);
}
-void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp,
- char **cpp_argv)
+void compile_packets(char *file, bool verbose, unsigned int cpu,
+ bool invoke_cpp, char *const cpp_argv[])
{
char tmp_file[128];
int ret = -1;