aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dirvec.c2
-rw-r--r--src/dirvec.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dirvec.c b/src/dirvec.c
index 3ec5b7af1..fdfbb3434 100644
--- a/src/dirvec.c
+++ b/src/dirvec.c
@@ -21,7 +21,7 @@ void dirvec_sort(struct dirvec *dv)
qsort(dv->base, dv->nr, sizeof(struct directory *), dirvec_cmp);
}
-struct directory *dirvec_find(struct dirvec *dv, const char *path)
+struct directory *dirvec_find(const struct dirvec *dv, const char *path)
{
int i;
diff --git a/src/dirvec.h b/src/dirvec.h
index 24c960c2e..cc0b0d6c2 100644
--- a/src/dirvec.h
+++ b/src/dirvec.h
@@ -10,7 +10,7 @@ struct dirvec {
void dirvec_sort(struct dirvec *dv);
-struct directory *dirvec_find(struct dirvec *dv, const char *path);
+struct directory *dirvec_find(const struct dirvec *dv, const char *path);
int dirvec_delete(struct dirvec *dv, struct directory *del);