Commit da8b0177 authored by Max Kellermann's avatar Max Kellermann

playlist/soundcloud: libyajl2 uses size_t for string lengths

Fixes build failure on 64 bit.
parent 725fbe94
...@@ -130,7 +130,13 @@ static int handle_integer(void *ctx, ...@@ -130,7 +130,13 @@ static int handle_integer(void *ctx,
return 1; 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; struct parse_data *data = (struct parse_data *) ctx;
const char *s = (const char *) stringval; const char *s = (const char *) stringval;
...@@ -154,7 +160,13 @@ static int handle_string(void *ctx, const unsigned char* stringval, unsigned int ...@@ -154,7 +160,13 @@ static int handle_string(void *ctx, const unsigned char* stringval, unsigned int
return 1; 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; struct parse_data *data = (struct parse_data *) ctx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment