diff options
author | Max Kellermann <max@duempel.org> | 2013-12-14 22:09:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-14 22:09:27 +0100 |
commit | 4b7a418e2813ccb35f64930a6f4a548ba3930bad (patch) | |
tree | a40ef55040388b0ab73680f44101ec9b3840848d /src | |
parent | 73d917b76e98d2a28dbf0cc86cf8f1724eab0723 (diff) | |
download | mpd-4b7a418e2813ccb35f64930a6f4a548ba3930bad.tar.gz mpd-4b7a418e2813ccb35f64930a6f4a548ba3930bad.tar.xz mpd-4b7a418e2813ccb35f64930a6f4a548ba3930bad.zip |
playlist/soundcloud: fix coding style
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist/SoundCloudPlaylistPlugin.cxx | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx index 01b4e22c5..0ab250b22 100644 --- a/src/playlist/SoundCloudPlaylistPlugin.cxx +++ b/src/playlist/SoundCloudPlaylistPlugin.cxx @@ -63,7 +63,8 @@ soundcloud_init(const config_param ¶m) * @return Constructed URL. Must be freed with g_free. */ static char * -soundcloud_resolve(const char* uri) { +soundcloud_resolve(const char* uri) +{ char *u, *ru; if (StringStartsWith(uri, "http://")) { @@ -109,12 +110,13 @@ struct parse_data { std::forward_list<SongPointer> songs; }; -static int handle_integer(void *ctx, - long +static int +handle_integer(void *ctx, + long #ifndef HAVE_YAJL1 - long + long #endif - intval) + intval) { struct parse_data *data = (struct parse_data *) ctx; @@ -129,13 +131,14 @@ static int handle_integer(void *ctx, return 1; } -static int handle_string(void *ctx, const unsigned char* stringval, +static int +handle_string(void *ctx, const unsigned char* stringval, #ifdef HAVE_YAJL1 - unsigned int + unsigned int #else - size_t + size_t #endif - stringlen) + stringlen) { struct parse_data *data = (struct parse_data *) ctx; const char *s = (const char *) stringval; @@ -159,13 +162,14 @@ static int handle_string(void *ctx, const unsigned char* stringval, return 1; } -static int handle_mapkey(void *ctx, const unsigned char* stringval, +static int +handle_mapkey(void *ctx, const unsigned char* stringval, #ifdef HAVE_YAJL1 - unsigned int + unsigned int #else - size_t + size_t #endif - stringlen) + stringlen) { struct parse_data *data = (struct parse_data *) ctx; @@ -182,7 +186,8 @@ static int handle_mapkey(void *ctx, const unsigned char* stringval, return 1; } -static int handle_start_map(void *ctx) +static int +handle_start_map(void *ctx) { struct parse_data *data = (struct parse_data *) ctx; @@ -192,7 +197,8 @@ static int handle_start_map(void *ctx) return 1; } -static int handle_end_map(void *ctx) +static int +handle_end_map(void *ctx) { struct parse_data *data = (struct parse_data *) ctx; |