From f81333daa0bb652a5c1296941057eef82a12e12f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 12:57:30 +0200 Subject: code style, indent with tabs XI Follow the same code style als MPD itself. --- src/strfsong.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/strfsong.c') diff --git a/src/strfsong.c b/src/strfsong.c index cef2056c8..ed3e20f98 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -1,6 +1,4 @@ -/* - * $Id$ - * +/* * Based on mpc's songToFormatedString modified for glib and ncmpc * * @@ -33,11 +31,12 @@ skip(const gchar * p) gint stack = 0; while (*p != '\0') { - if(*p == '[') stack++; - if(*p == '#' && p[1] != '\0') { + if (*p == '[') + stack++; + if (*p == '#' && p[1] != '\0') { /* skip escaped stuff */ ++p; - } else if(stack) { + } else if (stack) { if(*p == ']') stack--; } else { if(*p == '&' || *p == '|' || *p == ']') { @@ -63,7 +62,7 @@ _strfsong(gchar *s, gboolean found = FALSE; memset(s, 0, max); - if( song==NULL ) + if (song == NULL) return 0; for (p = format; *p != '\0' && length