From b126dbbfecd92850528b37b7f580e48601023748 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Sep 2008 12:03:43 +0200 Subject: code style, indent with tabs III Follow the same code style als MPD itself. --- src/screen_search.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/screen_search.c') diff --git a/src/screen_search.c b/src/screen_search.c index 9ec189d0e..6e2a0d68c 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -179,16 +179,14 @@ static void search_clear(mpd_unused screen_t *screen, mpdclient_t *c, gboolean clear_pattern) { - if( filelist ) - { - mpdclient_remove_playlist_callback(c, playlist_changed_callback); - filelist = mpdclient_filelist_free(filelist); - } - if( clear_pattern && pattern ) - { - g_free(pattern); - pattern = NULL; - } + if (filelist) { + mpdclient_remove_playlist_callback(c, playlist_changed_callback); + filelist = mpdclient_filelist_free(filelist); + } + if (clear_pattern && pattern) { + g_free(pattern); + pattern = NULL; + } } #ifdef FUTURE @@ -366,20 +364,22 @@ search_new(screen_t *screen, mpdclient_t *c) static void init(WINDOW *w, int cols, int rows) { - lw = list_window_init(w, cols, rows); + lw = list_window_init(w, cols, rows); } static void quit(void) { - if( search_history ) - string_list_free(search_history); - if( filelist ) - filelist = mpdclient_filelist_free(filelist); - list_window_free(lw); - if( pattern ) - g_free(pattern); - pattern = NULL; + if (search_history) + string_list_free(search_history); + if (filelist) + filelist = mpdclient_filelist_free(filelist); + list_window_free(lw); + + if (pattern) { + g_free(pattern); + pattern = NULL; + } } static void -- cgit v1.2.3