Commit d691577a authored by Max Kellermann's avatar Max Kellermann

client: read() return value is ssize_t

Use ssize_t instead of int.
parent 79459d08
...@@ -443,7 +443,7 @@ static int client_process_line(struct client *client, char *line) ...@@ -443,7 +443,7 @@ static int client_process_line(struct client *client, char *line)
return ret; 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 *start = client->buffer + client->bufferPos, *end;
char *newline, *next; char *newline, *next;
...@@ -499,7 +499,7 @@ static int client_input_received(struct client *client, int bytesRead) ...@@ -499,7 +499,7 @@ static int client_input_received(struct client *client, int bytesRead)
static int client_read(struct client *client) static int client_read(struct client *client)
{ {
int bytesRead; ssize_t bytesRead;
bytesRead = read(client->fd, bytesRead = read(client->fd,
client->buffer + client->bufferLength, client->buffer + client->bufferLength,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment