summaryrefslogtreecommitdiff
path: root/cpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpp.c')
-rw-r--r--cpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp.c b/cpp.c
index 8e03209..30a1404 100644
--- a/cpp.c
+++ b/cpp.c
@@ -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);