diff options
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c index ac1045a..d4a4a10 100644 --- a/src/client.c +++ b/src/client.c | |||
| @@ -318,7 +318,7 @@ static int start_listen(struct mux_client *client) | |||
| 318 | count = device_get_list(devs); | 318 | count = device_get_list(devs); |
| 319 | 319 | ||
| 320 | // going to need a larger buffer for many devices | 320 | // going to need a larger buffer for many devices |
| 321 | int needed_buffer = count * (sizeof(struct usbmuxd_device_record) + sizeof(struct usbmuxd_header)) + REPLY_BUF_SIZE; | 321 | uint32_t needed_buffer = count * (sizeof(struct usbmuxd_device_record) + sizeof(struct usbmuxd_header)) + REPLY_BUF_SIZE; |
| 322 | if(client->ob_capacity < needed_buffer) { | 322 | if(client->ob_capacity < needed_buffer) { |
| 323 | usbmuxd_log(LL_DEBUG, "Enlarging client %d reply buffer %d -> %d to make space for device notifications", client->fd, client->ob_capacity, needed_buffer); | 323 | usbmuxd_log(LL_DEBUG, "Enlarging client %d reply buffer %d -> %d to make space for device notifications", client->fd, client->ob_capacity, needed_buffer); |
| 324 | client->ob_buf = realloc(client->ob_buf, needed_buffer); | 324 | client->ob_buf = realloc(client->ob_buf, needed_buffer); |
| @@ -464,7 +464,7 @@ static int client_command(struct mux_client *client, struct usbmuxd_header *hdr) | |||
| 464 | 464 | ||
| 465 | static void process_send(struct mux_client *client) | 465 | static void process_send(struct mux_client *client) |
| 466 | { | 466 | { |
| 467 | int res; | 467 | uint32_t res; |
| 468 | if(!client->ob_size) { | 468 | if(!client->ob_size) { |
| 469 | usbmuxd_log(LL_WARNING, "Client %d OUT process but nothing to send?", client->fd); | 469 | usbmuxd_log(LL_WARNING, "Client %d OUT process but nothing to send?", client->fd); |
| 470 | client->events &= ~POLLOUT; | 470 | client->events &= ~POLLOUT; |
