aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagTracker.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:57:58 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:57:58 +0200
commit4665f2bf32c59f263d22c2315d60509c9ae8854b (patch)
tree49d89bdd813e2a2a61ff210a2a720ff271cdcc2c /src/tagTracker.c
parent94293149b1375dad39745f2f8e5f1b8f0299cc61 (diff)
downloadmpd-4665f2bf32c59f263d22c2315d60509c9ae8854b.tar.gz
mpd-4665f2bf32c59f263d22c2315d60509c9ae8854b.tar.xz
mpd-4665f2bf32c59f263d22c2315d60509c9ae8854b.zip
tag: don't pass "fd" to printVisitedInTagTracker()
Pass the client struct instead of the raw file descriptor.
Diffstat (limited to 'src/tagTracker.c')
-rw-r--r--src/tagTracker.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index 13fba77c9..bc9a43bc7 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -20,7 +20,7 @@
#include "tag.h"
#include "utils.h"
-#include "myfprintf.h"
+#include "client.h"
#include "directory.h"
struct visited {
@@ -106,13 +106,12 @@ void visitInTagTracker(int type, const char *str)
++num_visited[type];
}
-void printVisitedInTagTracker(int fd, int type)
+void printVisitedInTagTracker(struct client *client, int type)
{
struct visited *v;
for (v = visited_heads[type]; v != NULL; v = v->next)
- fdprintf(fd,
- "%s: %s\n",
- mpdTagItemKeys[type],
- v->value);
+ client_printf(client, "%s: %s\n",
+ mpdTagItemKeys[type],
+ v->value);
}