diff options
Diffstat (limited to 'daemon/client.c')
| -rw-r--r-- | daemon/client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon/client.c b/daemon/client.c index 5498586..4f44bcc 100644 --- a/daemon/client.c +++ b/daemon/client.c | |||
| @@ -52,11 +52,11 @@ enum client_state { | |||
| 52 | struct mux_client { | 52 | struct mux_client { |
| 53 | int fd; | 53 | int fd; |
| 54 | unsigned char *ob_buf; | 54 | unsigned char *ob_buf; |
| 55 | int ob_size; | 55 | uint32_t ob_size; |
| 56 | int ob_capacity; | 56 | uint32_t ob_capacity; |
| 57 | unsigned char *ib_buf; | 57 | unsigned char *ib_buf; |
| 58 | int ib_size; | 58 | uint32_t ib_size; |
| 59 | int ib_capacity; | 59 | uint32_t ib_capacity; |
| 60 | short events, devents; | 60 | short events, devents; |
| 61 | uint32_t connect_tag; | 61 | uint32_t connect_tag; |
| 62 | int connect_device; | 62 | int connect_device; |
| @@ -65,7 +65,7 @@ struct mux_client { | |||
| 65 | 65 | ||
| 66 | static struct collection client_list; | 66 | static struct collection client_list; |
| 67 | 67 | ||
| 68 | int client_read(struct mux_client *client, void *buffer, int len) | 68 | int client_read(struct mux_client *client, void *buffer, uint32_t len) |
| 69 | { | 69 | { |
| 70 | usbmuxd_log(LL_SPEW, "client_read fd %d buf %p len %d", client->fd, buffer, len); | 70 | usbmuxd_log(LL_SPEW, "client_read fd %d buf %p len %d", client->fd, buffer, len); |
| 71 | if(client->state != CLIENT_CONNECTED) { | 71 | if(client->state != CLIENT_CONNECTED) { |
| @@ -75,7 +75,7 @@ int client_read(struct mux_client *client, void *buffer, int len) | |||
| 75 | return recv(client->fd, buffer, len, 0); | 75 | return recv(client->fd, buffer, len, 0); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | int client_write(struct mux_client *client, void *buffer, int len) | 78 | int client_write(struct mux_client *client, void *buffer, uint32_t len) |
| 79 | { | 79 | { |
| 80 | usbmuxd_log(LL_SPEW, "client_write fd %d buf %p len %d", client->fd, buffer, len); | 80 | usbmuxd_log(LL_SPEW, "client_write fd %d buf %p len %d", client->fd, buffer, len); |
| 81 | if(client->state != CLIENT_CONNECTED) { | 81 | if(client->state != CLIENT_CONNECTED) { |
