summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/setup.c b/setup.c
index 3973668f01..9e20160d94 100644
--- a/setup.c
+++ b/setup.c
@@ -1,8 +1,8 @@
#include "cache.h"
-char *prefix_path(const char *prefix, int len, char *path)
+const char *prefix_path(const char *prefix, int len, const char *path)
{
- char *orig = path;
+ const char *orig = path;
for (;;) {
char c;
if (*path != '.')
@@ -47,10 +47,10 @@ char *prefix_path(const char *prefix, int len, char *path)
return path;
}
-const char **get_pathspec(const char *prefix, char **pathspec)
+const char **get_pathspec(const char *prefix, const char **pathspec)
{
- char *entry = *pathspec;
- char **p;
+ const char *entry = *pathspec;
+ const char **p;
int prefixlen;
if (!prefix && !entry)