aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirvec.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 15:24:34 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 15:24:34 +0200
commita5480108f8c834a1db3b5c4f30a7dd7e9569776e (patch)
tree95be7f2da2cebda58f83891021901381ac281991 /src/dirvec.h
parent68f716a28bb92acb8d21785499b49cfc8b6091fb (diff)
downloadmpd-a5480108f8c834a1db3b5c4f30a7dd7e9569776e.tar.gz
mpd-a5480108f8c834a1db3b5c4f30a7dd7e9569776e.tar.xz
mpd-a5480108f8c834a1db3b5c4f30a7dd7e9569776e.zip
dirvec: constant pointers in dirvec_find()
dirvec_find() does not modify the object, thus it should get a const pointer.
Diffstat (limited to 'src/dirvec.h')
-rw-r--r--src/dirvec.h2
1 files changed, 1 insertions, 1 deletions
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);