diff options
| author | 2018-05-09 14:59:36 +0200 | |
|---|---|---|
| committer | 2018-05-09 14:59:36 +0200 | |
| commit | 065a2cd678f5335c14d157dc0bc35286e562a4d6 (patch) | |
| tree | 924ac83cd8e0985962065a47e88bc76a613934d9 /src/device.c | |
| parent | b95a0a014d48e3d4169d2f9885fcd0863abd57c1 (diff) | |
| download | usbmuxd-065a2cd678f5335c14d157dc0bc35286e562a4d6.tar.gz usbmuxd-065a2cd678f5335c14d157dc0bc35286e562a4d6.tar.bz2 | |
Remove whitespace errors
Diffstat (limited to 'src/device.c')
| -rw-r--r-- | src/device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/device.c b/src/device.c index 6d807f2..d5cf9f0 100644 --- a/src/device.c +++ b/src/device.c | |||
| @@ -129,7 +129,7 @@ pthread_mutex_t device_list_mutex; | |||
| 129 | 129 | ||
| 130 | static struct mux_device* get_mux_device_for_id(int device_id) | 130 | static struct mux_device* get_mux_device_for_id(int device_id) |
| 131 | { | 131 | { |
| 132 | struct mux_device *dev = NULL; | 132 | struct mux_device *dev = NULL; |
| 133 | pthread_mutex_lock(&device_list_mutex); | 133 | pthread_mutex_lock(&device_list_mutex); |
| 134 | FOREACH(struct mux_device *cdev, &device_list) { | 134 | FOREACH(struct mux_device *cdev, &device_list) { |
| 135 | if(cdev->id == device_id) { | 135 | if(cdev->id == device_id) { |
| @@ -433,12 +433,12 @@ static int send_tcp_ack(struct mux_connection *conn) | |||
| 433 | if(send_tcp(conn, TH_ACK, NULL, 0) < 0) { | 433 | if(send_tcp(conn, TH_ACK, NULL, 0) < 0) { |
| 434 | usbmuxd_log(LL_ERROR, "Error sending TCP ACK (%d->%d)", conn->sport, conn->dport); | 434 | usbmuxd_log(LL_ERROR, "Error sending TCP ACK (%d->%d)", conn->sport, conn->dport); |
| 435 | connection_teardown(conn); | 435 | connection_teardown(conn); |
| 436 | return -1; | 436 | return -1; |
| 437 | } | 437 | } |
| 438 | 438 | ||
| 439 | update_connection(conn); | 439 | update_connection(conn); |
| 440 | 440 | ||
| 441 | return 0; | 441 | return 0; |
| 442 | } | 442 | } |
| 443 | 443 | ||
| 444 | /** | 444 | /** |
| @@ -534,7 +534,7 @@ static void connection_device_input(struct mux_connection *conn, unsigned char * | |||
| 534 | 534 | ||
| 535 | void device_abort_connect(int device_id, struct mux_client *client) | 535 | void device_abort_connect(int device_id, struct mux_client *client) |
| 536 | { | 536 | { |
| 537 | struct mux_connection *conn = get_mux_connection(device_id, client); | 537 | struct mux_connection *conn = get_mux_connection(device_id, client); |
| 538 | if (conn) { | 538 | if (conn) { |
| 539 | connection_teardown(conn); | 539 | connection_teardown(conn); |
| 540 | } else { | 540 | } else { |
| @@ -740,7 +740,7 @@ void device_data_input(struct usb_device *usbdev, unsigned char *buffer, uint32_ | |||
| 740 | dev->pktlen = 0; | 740 | dev->pktlen = 0; |
| 741 | return; | 741 | return; |
| 742 | } | 742 | } |
| 743 | memcpy(dev->pktbuf + dev->pktlen, buffer, length); | 743 | memcpy(dev->pktbuf + dev->pktlen, buffer, length); |
| 744 | struct mux_header *mhdr = (struct mux_header *)dev->pktbuf; | 744 | struct mux_header *mhdr = (struct mux_header *)dev->pktbuf; |
| 745 | if((length < USB_MRU) || (ntohl(mhdr->length) == (length + dev->pktlen))) { | 745 | if((length < USB_MRU) || (ntohl(mhdr->length) == (length + dev->pktlen))) { |
| 746 | buffer = dev->pktbuf; | 746 | buffer = dev->pktbuf; |
