From 686a6df3a564400bc2f0d339e548e2a76677b1f5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Oct 2008 01:31:36 +0200 Subject: [PATCH] {dir,song}vec: these structs are const We definitely don't modify them here. --- src/dirvec.c | 2 +- src/songvec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dirvec.c b/src/dirvec.c index 7493a4d2c..8f8bcd0c8 100644 --- a/src/dirvec.c +++ b/src/dirvec.c @@ -6,7 +6,7 @@ #include #include -static size_t dv_size(struct dirvec *dv) +static size_t dv_size(const struct dirvec *dv) { return dv->nr * sizeof(struct directory *); } diff --git a/src/songvec.c b/src/songvec.c index a62c6e671..7b0607dd9 100644 --- a/src/songvec.c +++ b/src/songvec.c @@ -15,7 +15,7 @@ static int songvec_cmp(const void *s1, const void *s2) return strcmp(a->url, b->url); } -static size_t sv_size(struct songvec *sv) +static size_t sv_size(const struct songvec *sv) { return sv->nr * sizeof(struct song *); }