diff options
author | Max Kellermann <max@duempel.org> | 2008-09-19 14:10:35 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-19 14:10:35 +0200 |
commit | 4364a0bc8620e95f2fb63949f1f6f63aa233a649 (patch) | |
tree | 14184f5a712c1ef35ccb2889c68c027cd5bcbc7a /src/mpdclient.c | |
parent | 9ed50c768c9169fd6b968a91edeb161694cf9fcf (diff) | |
download | mpd-4364a0bc8620e95f2fb63949f1f6f63aa233a649.tar.gz mpd-4364a0bc8620e95f2fb63949f1f6f63aa233a649.tar.xz mpd-4364a0bc8620e95f2fb63949f1f6f63aa233a649.zip |
code style, indent with tabs VII
Follow the same code style als MPD itself.
Diffstat (limited to 'src/mpdclient.c')
-rw-r--r-- | src/mpdclient.c | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c index 1b5486616..a2e272119 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -901,35 +901,28 @@ mpdclient_filelist_find_song(mpdclient_filelist_t *fl, struct mpd_song *song) int mpdclient_filelist_add_all(mpdclient_t *c, mpdclient_filelist_t *fl) { - GList *list = g_list_first(fl->list); - - if( fl->list==NULL || fl->length<1 ) - return 0; - - mpd_sendCommandListBegin(c->connection); - while( list ) - { - filelist_entry_t *entry = list->data; - mpd_InfoEntity *entity = entry->entity; - - if( entity && entity->type==MPD_INFO_ENTITY_TYPE_SONG ) - { - struct mpd_song *song = entity->info.song; - - mpd_sendAddCommand(c->connection, song->file); - } - list = list->next; - } - mpd_sendCommandListEnd(c->connection); - return mpdclient_finish_command(c); -} - + GList *list = g_list_first(fl->list); + if (fl->list == NULL || fl->length < 1) + return 0; + mpd_sendCommandListBegin(c->connection); + while (list) { + filelist_entry_t *entry = list->data; + mpd_InfoEntity *entity = entry->entity; + if (entity && entity->type == MPD_INFO_ENTITY_TYPE_SONG) { + struct mpd_song *song = entity->info.song; + mpd_sendAddCommand(c->connection, song->file); + } + list = list->next; + } + mpd_sendCommandListEnd(c->connection); + return mpdclient_finish_command(c); +} GList * mpdclient_get_artists_utf8(mpdclient_t *c) |