diff options
author | Max Kellermann <max@duempel.org> | 2008-10-09 15:24:34 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:49 -0700 |
commit | f2052e7e2ffb5b8ecd15d96a766b5a162a39b2af (patch) | |
tree | 9861051f466c8328bb03e871c90f96eea233434a /src/dirvec.h | |
parent | 7f79b3c6fc21d687f116b3e2a2b7bad309a191c0 (diff) | |
download | mpd-f2052e7e2ffb5b8ecd15d96a766b5a162a39b2af.tar.gz mpd-f2052e7e2ffb5b8ecd15d96a766b5a162a39b2af.tar.xz mpd-f2052e7e2ffb5b8ecd15d96a766b5a162a39b2af.zip |
dirvec: constant pointers in dirvec_find()
dirvec_find() does not modify the object, thus it should get a const
pointer.
Diffstat (limited to '')
-rw-r--r-- | src/dirvec.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |