From 6d3b7cdd62d798521d73ac58d57bd67061d64ba5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:26 +0200 Subject: code style, indent with tabs Follow the same code style als MPD itself. This patch only fixes parts of the code which are going to be touched in the following bunch of patches, i.e. there will be more "code style" patches in the future. --- src/libmpdclient.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/libmpdclient.c') diff --git a/src/libmpdclient.c b/src/libmpdclient.c index 65c2e447e..c9641e9e4 100644 --- a/src/libmpdclient.c +++ b/src/libmpdclient.c @@ -924,7 +924,8 @@ static void mpd_initDirectory(mpd_Directory * directory) { } static void mpd_finishDirectory(mpd_Directory * directory) { - if(directory->path) free(directory->path); + if (directory->path) + free(directory->path); } mpd_Directory * mpd_newDirectory(void) { @@ -944,7 +945,8 @@ void mpd_freeDirectory(mpd_Directory * directory) { mpd_Directory * mpd_directoryDup(mpd_Directory * directory) { mpd_Directory * ret = mpd_newDirectory(); - if(directory->path) ret->path = strdup(directory->path); + if (directory->path) + ret->path = strdup(directory->path); return ret; } @@ -954,7 +956,8 @@ static void mpd_initPlaylistFile(mpd_PlaylistFile * playlist) { } static void mpd_finishPlaylistFile(mpd_PlaylistFile * playlist) { - if(playlist->path) free(playlist->path); + if (playlist->path) + free(playlist->path); } mpd_PlaylistFile * mpd_newPlaylistFile(void) { @@ -973,7 +976,8 @@ void mpd_freePlaylistFile(mpd_PlaylistFile * playlist) { mpd_PlaylistFile * mpd_playlistFileDup(mpd_PlaylistFile * playlist) { mpd_PlaylistFile * ret = mpd_newPlaylistFile(); - if(playlist->path) ret->path = strdup(playlist->path); + if (playlist->path) + ret->path = strdup(playlist->path); return ret; } @@ -1017,8 +1021,7 @@ mpd_InfoEntity * mpd_getNextInfoEntity(mpd_Connection * connection) { mpd_InfoEntity * entity = NULL; if(connection->doneProcessing || (connection->listOks && - connection->doneListOk)) - { + connection->doneListOk)) { return NULL; } -- cgit v1.2.3