aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-12 18:50:26 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-12 18:50:26 -0700
commit6ef202e776807481144b47d064debf74606cdcce (patch)
tree6cc1a922d298f377921bd954f75525f65161382e /src
parent7278e3b2ee49a853b01dc6532bd7067a264f235d (diff)
downloadmpd-6ef202e776807481144b47d064debf74606cdcce.tar.gz
mpd-6ef202e776807481144b47d064debf74606cdcce.tar.xz
mpd-6ef202e776807481144b47d064debf74606cdcce.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 a5eb6d54e..14534d05e 100644
--- a/src/dirvec.c
+++ b/src/dirvec.c
@@ -5,7 +5,7 @@
static pthread_mutex_t nr_lock = PTHREAD_MUTEX_INITIALIZER;
-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 19433a222..c15b99074 100644
--- a/src/songvec.c
+++ b/src/songvec.c
@@ -12,7 +12,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 mpd_song *);
}