From a5480108f8c834a1db3b5c4f30a7dd7e9569776e 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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dirvec.h') diff --git a/src/dirvec.h b/src/dirvec.h index 07566116c..f89c2cd19 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); -- cgit v1.2.3