aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 14:08:37 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 14:08:37 +0200
commit86d261bdb5cb18665ecd656bf46e502744ce89f8 (patch)
tree61eb08aeaf621e875286c7b985b81e2b09c6b06e /src/client.c
parent322e908893b781f4536b13bcf8a5c526a92e8b10 (diff)
downloadmpd-86d261bdb5cb18665ecd656bf46e502744ce89f8.tar.gz
mpd-86d261bdb5cb18665ecd656bf46e502744ce89f8.tar.xz
mpd-86d261bdb5cb18665ecd656bf46e502744ce89f8.zip
removed fdprintf() and client_print()
All callers of fdprintf() have been converted to client_printf() or fprintf(); it is time to remove this clumsy hack now. We can also remove client_print() which took a file descriptor as parameter.
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/client.c b/src/client.c
index c6d4c6249..714172095 100644
--- a/src/client.c
+++ b/src/client.c
@@ -671,31 +671,6 @@ static void client_write_deferred(struct client *client)
}
}
-static struct client *client_by_fd(int fd)
-{
- struct client *client;
-
- list_for_each_entry(client, &clients, siblings)
- if (client->fd == fd)
- return client;
-
- return NULL;
-}
-
-int client_print(int fd, const char *buffer, size_t buflen)
-{
- struct client *client;
-
- assert(fd >= 0);
-
- client = client_by_fd(fd);
- if (client == NULL)
- return -1;
-
- client_write(client, buffer, buflen);
- return 0;
-}
-
static void client_defer_output(struct client *client,
const void *data, size_t length)
{