aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 23:26:40 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 23:26:40 +0200
commitd691577a96284129133db7c49ecc3c8053560aa5 (patch)
tree4fde3bdcdc04cb16f9941e19ab470c20ac6fc956 /src
parent79459d08d9897317ba3b526fbf813e0ef2fb96b5 (diff)
downloadmpd-d691577a96284129133db7c49ecc3c8053560aa5.tar.gz
mpd-d691577a96284129133db7c49ecc3c8053560aa5.tar.xz
mpd-d691577a96284129133db7c49ecc3c8053560aa5.zip
client: read() return value is ssize_t
Use ssize_t instead of int.
Diffstat (limited to 'src')
-rw-r--r--src/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index bac65bcc0..c97b24b48 100644
--- a/src/client.c
+++ b/src/client.c
@@ -443,7 +443,7 @@ static int client_process_line(struct client *client, char *line)
return ret;
}
-static int client_input_received(struct client *client, int bytesRead)
+static int client_input_received(struct client *client, size_t bytesRead)
{
char *start = client->buffer + client->bufferPos, *end;
char *newline, *next;
@@ -499,7 +499,7 @@ static int client_input_received(struct client *client, int bytesRead)
static int client_read(struct client *client)
{
- int bytesRead;
+ ssize_t bytesRead;
bytesRead = read(client->fd,
client->buffer + client->bufferLength,