From f2052e7e2ffb5b8ecd15d96a766b5a162a39b2af Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Oct 2008 15:24:34 +0200 Subject: dirvec: constant pointers in dirvec_find() dirvec_find() does not modify the object, thus it should get a const pointer. --- src/dirvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dirvec.c') 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; -- cgit v1.2.3