summaryrefslogtreecommitdiff
path: root/cpp.h
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 /cpp.h
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 'cpp.h')
-rw-r--r--cpp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp.h b/cpp.h
index 45c42ac..1cf0a35 100644
--- a/cpp.h
+++ b/cpp.h
@@ -1,6 +1,6 @@
#ifndef CPP_H
#define CPP_H
-extern int cpp_exec(char *in_file, char *out_file, size_t out_len, char **argv);
+extern int cpp_exec(char *in_file, char *out_file, size_t out_len, char *const argv[]);
#endif