aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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 'src')
-rw-r--r--src/dirvec.c2
-rw-r--r--src/songvec.c2
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 <string.h>
#include <glib.h>
-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 *);
}