aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-22 01:07:49 +0100
committerMax Kellermann <max@duempel.org>2012-03-22 01:07:49 +0100
commitda8b01771ff425dd30dca1cb8a8fe943d2ecc90b (patch)
treeae5f80bb688fadbf96ae87d2e61ae4908cc8ffc1 /src/playlist
parent725fbe946b2466cbfb60ddedf50ae1ed968d36e5 (diff)
downloadmpd-da8b01771ff425dd30dca1cb8a8fe943d2ecc90b.tar.gz
mpd-da8b01771ff425dd30dca1cb8a8fe943d2ecc90b.tar.xz
mpd-da8b01771ff425dd30dca1cb8a8fe943d2ecc90b.zip
playlist/soundcloud: libyajl2 uses size_t for string lengths
Fixes build failure on 64 bit.
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/soundcloud_playlist_plugin.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/playlist/soundcloud_playlist_plugin.c b/src/playlist/soundcloud_playlist_plugin.c
index 30d486e67..7c79f880a 100644
--- a/src/playlist/soundcloud_playlist_plugin.c
+++ b/src/playlist/soundcloud_playlist_plugin.c
@@ -130,7 +130,13 @@ static int handle_integer(void *ctx,
return 1;
}
-static int handle_string(void *ctx, const unsigned char* stringval, unsigned int stringlen)
+static int handle_string(void *ctx, const unsigned char* stringval,
+#ifdef HAVE_YAJL1
+ unsigned int
+#else
+ size_t
+#endif
+ stringlen)
{
struct parse_data *data = (struct parse_data *) ctx;
const char *s = (const char *) stringval;
@@ -154,7 +160,13 @@ static int handle_string(void *ctx, const unsigned char* stringval, unsigned int
return 1;
}
-static int handle_mapkey(void *ctx, const unsigned char* stringval, unsigned int stringlen)
+static int handle_mapkey(void *ctx, const unsigned char* stringval,
+#ifdef HAVE_YAJL1
+ unsigned int
+#else
+ size_t
+#endif
+ stringlen)
{
struct parse_data *data = (struct parse_data *) ctx;