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/screen_utils.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src/screen_utils.c') diff --git a/src/screen_utils.c b/src/screen_utils.c index 40f73e63b..a5ccd58f4 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -80,8 +80,8 @@ screen_getch(WINDOW *w, char *prompt) } char * -screen_readln(WINDOW *w, - char *prompt, +screen_readln(WINDOW *w, + char *prompt, char *value, GList **history, GCompletion *gcmp) @@ -139,9 +139,9 @@ _screen_auth(mpdclient_t *c, gint recursion) gint screen_auth(mpdclient_t *c) { - _screen_auth(c, 0); - mpdclient_update(c); - curs_set(0); + _screen_auth(c, 0); + mpdclient_update(c); + curs_set(0); } /* query user for a string and find it in a list window */ @@ -153,16 +153,15 @@ screen_find(screen_t *screen, list_window_callback_fn_t callback_fn, void *callback_data) { - int reversed = 0; - int retval = 0; - char *prompt = FIND_PROMPT; - char *value = options.find_show_last_pattern ? (char *) -1 : NULL; + int reversed = 0; + int retval = 0; + char *prompt = FIND_PROMPT; + char *value = options.find_show_last_pattern ? (char *) -1 : NULL; - if( findcmd==CMD_LIST_RFIND ||findcmd==CMD_LIST_RFIND_NEXT ) - { - prompt = RFIND_PROMPT; - reversed = 1; - } + if (findcmd == CMD_LIST_RFIND || findcmd == CMD_LIST_RFIND_NEXT) { + prompt = RFIND_PROMPT; + reversed = 1; + } switch(findcmd) { -- cgit v1.2.3