diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-12-17 11:51:25 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-12-17 11:51:25 +0100 |
commit | 6a95717c07d4b453531ebe52f55c6dcfa520dc80 (patch) | |
tree | 9a4691542f4212c07d1241c44ff512a44eaabe4c /trafgen_parser.y | |
parent | 126e0038a73b38fac7b3e03173b2d791734cc497 (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.y | 4 |
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; |