aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-17 12:03:43 +0200
committerMax Kellermann <max@duempel.org>2008-09-17 12:03:43 +0200
commitb126dbbfecd92850528b37b7f580e48601023748 (patch)
treeedcc61626ea49ec66ddeb04cb204e23d9056c14d /src/screen_search.c
parent5fb495639feb4d6789cfc95358fd5ffd95bd871a (diff)
downloadmpd-b126dbbfecd92850528b37b7f580e48601023748.tar.gz
mpd-b126dbbfecd92850528b37b7f580e48601023748.tar.xz
mpd-b126dbbfecd92850528b37b7f580e48601023748.zip
code style, indent with tabs III
Follow the same code style als MPD itself.
Diffstat (limited to '')
-rw-r--r--src/screen_search.c38
1 files changed, 19 insertions, 19 deletions
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