aboutsummaryrefslogtreecommitdiffstats
path: root/src/songvec.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-21 01:31:36 +0200
committerMax Kellermann <max@duempel.org>2008-10-21 01:31:36 +0200
commit686a6df3a564400bc2f0d339e548e2a76677b1f5 (patch)
treeca6f9e00d27d9859b28b85d1892f71e1bb7b2e09 /src/songvec.c
parentf2525e3efbd35262ac1fa017482c8a70c11f35c0 (diff)
downloadmpd-686a6df3a564400bc2f0d339e548e2a76677b1f5.tar.gz
mpd-686a6df3a564400bc2f0d339e548e2a76677b1f5.tar.xz
mpd-686a6df3a564400bc2f0d339e548e2a76677b1f5.zip
{dir,song}vec: these structs are const
We definitely don't modify them here.
Diffstat (limited to '')
-rw-r--r--src/songvec.c2
1 files changed, 1 insertions, 1 deletions
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 *);
}