summaryrefslogtreecommitdiffstats
path: root/daemon/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/client.c')
-rw-r--r--daemon/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/client.c b/daemon/client.c
index 0e47e84..0ba1c24 100644
--- a/daemon/client.c
+++ b/daemon/client.c
@@ -242,7 +242,7 @@ static int start_listen(struct mux_client *client)
242 return count; 242 return count;
243} 243}
244 244
245static int client_command(struct mux_client *client, struct usbmuxd_header *hdr, const char *payload) 245static int client_command(struct mux_client *client, struct usbmuxd_header *hdr)
246{ 246{
247 int res; 247 int res;
248 usbmuxd_log(LL_DEBUG, "Client command in fd %d len %d ver %d msg %d tag %d", client->fd, hdr->length, hdr->version, hdr->message, hdr->tag); 248 usbmuxd_log(LL_DEBUG, "Client command in fd %d len %d ver %d msg %d tag %d", client->fd, hdr->length, hdr->version, hdr->message, hdr->tag);
@@ -263,7 +263,7 @@ static int client_command(struct mux_client *client, struct usbmuxd_header *hdr,
263 usbmuxd_log(LL_DEBUG, "Client %d now LISTENING", client->fd); 263 usbmuxd_log(LL_DEBUG, "Client %d now LISTENING", client->fd);
264 return start_listen(client); 264 return start_listen(client);
265 case MESSAGE_CONNECT: 265 case MESSAGE_CONNECT:
266 ch = (void*)payload; 266 ch = (void*)hdr;
267 usbmuxd_log(LL_DEBUG, "Client %d connection request to device %d port %d", client->fd, ch->device_id, ntohs(ch->port)); 267 usbmuxd_log(LL_DEBUG, "Client %d connection request to device %d port %d", client->fd, ch->device_id, ntohs(ch->port));
268 res = device_start_connect(ch->device_id, ntohs(ch->port), client); 268 res = device_start_connect(ch->device_id, ntohs(ch->port), client);
269 if(res < 0) { 269 if(res < 0) {
@@ -363,7 +363,7 @@ static void process_recv(struct mux_client *client)
363 if(client->ib_size < hdr->length) 363 if(client->ib_size < hdr->length)
364 return; 364 return;
365 } 365 }
366 client_command(client, hdr, (char *)(hdr+1)); 366 client_command(client, hdr);
367 client->ib_size = 0; 367 client->ib_size = 0;
368} 368}
369 369