aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:19:32 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:19:32 +0000
commit8098d8ff8ef9b4829ba8f10d2d426d1569baaa7f (patch)
tree35f80fe334b42d19dc2290900c3e9c0282f4083d /src
parentc89b358c8acb50e7cb26a62017f231ef1c4c86b6 (diff)
downloadmpd-8098d8ff8ef9b4829ba8f10d2d426d1569baaa7f.tar.gz
mpd-8098d8ff8ef9b4829ba8f10d2d426d1569baaa7f.tar.xz
mpd-8098d8ff8ef9b4829ba8f10d2d426d1569baaa7f.zip
whitespace cleanup
git-svn-id: https://svn.musicpd.org/mpd/trunk@7320 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/tagTracker.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index fa287253b..c44ce8199 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -33,20 +33,20 @@ typedef struct tagTrackerItem {
char *getTagItemString(int type, char *string)
{
TreeIterator iter;
-
- if (tagTrees[type] == NULL)
+
+ if (tagTrees[type] == NULL)
{
- tagTrees[type] = MakeTree((TreeCompareKeyFunction)strcmp,
- (TreeFreeFunction)free,
+ tagTrees[type] = MakeTree((TreeCompareKeyFunction)strcmp,
+ (TreeFreeFunction)free,
(TreeFreeFunction)free);
}
- if (FindInTree(tagTrees[type], string, &iter))
+ if (FindInTree(tagTrees[type], string, &iter))
{
((TagTrackerItem *)GetTreeKeyData(&iter)->data)->count++;
return (char *)GetTreeKeyData(&iter)->key;
- }
- else
+ }
+ else
{
TagTrackerItem *item = xmalloc(sizeof(TagTrackerItem));
char *key = xstrdup(string);
@@ -60,23 +60,23 @@ char *getTagItemString(int type, char *string)
void removeTagItemString(int type, char *string)
{
TreeIterator iter;
-
+
assert(string);
assert(tagTrees[type]);
if (tagTrees[type] == NULL)
return;
- if (FindInTree(tagTrees[type], string, &iter))
+ if (FindInTree(tagTrees[type], string, &iter))
{
- TagTrackerItem * item =
+ TagTrackerItem * item =
(TagTrackerItem *)GetTreeKeyData(&iter)->data;
item->count--;
if (item->count <= 0)
RemoveFromTreeByIterator(tagTrees[type], &iter);
}
- if (GetTreeSize(tagTrees[type]) == 0)
+ if (GetTreeSize(tagTrees[type]) == 0)
{
FreeTree(tagTrees[type]);
tagTrees[type] = NULL;
@@ -133,10 +133,10 @@ void printVisitedInTagTracker(int fd, int type)
{
item = ((TagTrackerItem *)GetTreeKeyData(&iter)->data);
- if (item->visited)
+ if (item->visited)
{
- fdprintf(fd,
- "%s: %s\n",
+ fdprintf(fd,
+ "%s: %s\n",
mpdTagItemKeys[type],
(char *)GetTreeKeyData(&iter)->key);
}