diff options
author | Nikias Bassen | 2018-05-09 14:59:36 +0200 |
---|---|---|
committer | Nikias Bassen | 2018-05-09 14:59:36 +0200 |
commit | 065a2cd678f5335c14d157dc0bc35286e562a4d6 (patch) | |
tree | 924ac83cd8e0985962065a47e88bc76a613934d9 /src | |
parent | b95a0a014d48e3d4169d2f9885fcd0863abd57c1 (diff) | |
download | usbmuxd-065a2cd678f5335c14d157dc0bc35286e562a4d6.tar.gz usbmuxd-065a2cd678f5335c14d157dc0bc35286e562a4d6.tar.bz2 |
Remove whitespace errors
Diffstat (limited to 'src')
-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; static struct mux_device* get_mux_device_for_id(int device_id) { - struct mux_device *dev = NULL; + struct mux_device *dev = NULL; pthread_mutex_lock(&device_list_mutex); FOREACH(struct mux_device *cdev, &device_list) { if(cdev->id == device_id) { @@ -433,12 +433,12 @@ static int send_tcp_ack(struct mux_connection *conn) if(send_tcp(conn, TH_ACK, NULL, 0) < 0) { usbmuxd_log(LL_ERROR, "Error sending TCP ACK (%d->%d)", conn->sport, conn->dport); connection_teardown(conn); - return -1; + return -1; } - update_connection(conn); + update_connection(conn); - return 0; + return 0; } /** @@ -534,7 +534,7 @@ static void connection_device_input(struct mux_connection *conn, unsigned char * void device_abort_connect(int device_id, struct mux_client *client) { - struct mux_connection *conn = get_mux_connection(device_id, client); + struct mux_connection *conn = get_mux_connection(device_id, client); if (conn) { connection_teardown(conn); } else { @@ -740,7 +740,7 @@ void device_data_input(struct usb_device *usbdev, unsigned char *buffer, uint32_ dev->pktlen = 0; return; } - memcpy(dev->pktbuf + dev->pktlen, buffer, length); + memcpy(dev->pktbuf + dev->pktlen, buffer, length); struct mux_header *mhdr = (struct mux_header *)dev->pktbuf; if((length < USB_MRU) || (ntohl(mhdr->length) == (length + dev->pktlen))) { buffer = dev->pktbuf; |