From 4364a0bc8620e95f2fb63949f1f6f63aa233a649 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 19 Sep 2008 14:10:35 +0200 Subject: [PATCH] code style, indent with tabs VII Follow the same code style als MPD itself. --- src/mpdclient.c | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/src/mpdclient.c b/src/mpdclient.c index 1b54866..a2e2721 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) -- 2.30.2