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 /cpp.c | |
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 'cpp.c')
-rw-r--r-- | cpp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ #include "proc.h" #include "xmalloc.h" -static size_t argv_len(char **argv) +static size_t argv_len(char *const argv[]) { size_t len = 0; @@ -15,7 +15,7 @@ static size_t argv_len(char **argv) return len; } -int cpp_exec(char *in_file, char *out_file, size_t out_len, char **argv) +int cpp_exec(char *in_file, char *out_file, size_t out_len, char *const argv[]) { size_t argc = 7 + argv_len(argv); char *tmp = xstrdup(in_file); |