client: read() return value is ssize_t

Use ssize_t instead of int.
This commit is contained in:
Max Kellermann 2008-10-17 23:26:40 +02:00
parent 79459d08d9
commit d691577a96
1 changed files with 2 additions and 2 deletions

View File

@ -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,