diff --git a/src/strfsong.c b/src/strfsong.c
index cef2056c8b89b9d5e6bb49d85921f0d677ae6b7e..ed3e20f9807ad56fa1c91621a1f551dfd96f879f 100644 (file)
--- a/src/strfsong.c
+++ b/src/strfsong.c
-/*
- * $Id$
- *
+/*
* Based on mpc's songToFormatedString modified for glib and ncmpc
*
*
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 == ']') {
gboolean found = FALSE;
memset(s, 0, max);
- if( song==NULL )
+ if (song == NULL)
return 0;
for (p = format; *p != '\0' && length<max;) {
strfsong(gchar *s, gsize max, const gchar *format,
const struct mpd_song *song)
{
- return _strfsong(s, max, format, song, NULL);
+ return _strfsong(s, max, format, song, NULL);
}
-
+