diff options
| author | 2008-08-25 23:50:22 +0200 | |
|---|---|---|
| committer | 2008-08-31 19:33:18 +0200 | |
| commit | e52da6fe75008174a254254ec83394766afb624b (patch) | |
| tree | 9ad8cd860525a3340dd49e2dbc8cd685dcf1ca7e /src/usbmux.c | |
| parent | 6ac4ceb4c6ee63c279f4841381a3eb09598f3517 (diff) | |
| download | libimobiledevice-e52da6fe75008174a254254ec83394766afb624b.tar.gz libimobiledevice-e52da6fe75008174a254254ec83394766afb624b.tar.bz2 | |
make it compile
Diffstat (limited to 'src/usbmux.c')
| -rw-r--r-- | src/usbmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usbmux.c b/src/usbmux.c index 48cb963..5e3f441 100644 --- a/src/usbmux.c +++ b/src/usbmux.c | |||
| @@ -176,7 +176,7 @@ void iphone_mux_free_client ( iphone_umux_client_t client ) { | |||
| 176 | 176 | ||
| 177 | bytes = usb_bulk_write(client->phone->device, BULKOUT, (char*)client->header, sizeof(usbmux_tcp_header), 800); | 177 | bytes = usb_bulk_write(client->phone->device, BULKOUT, (char*)client->header, sizeof(usbmux_tcp_header), 800); |
| 178 | if(debug && bytes < 0) | 178 | if(debug && bytes < 0) |
| 179 | printf("mux_close_connection(): when writing, libusb gave me the error: %s\n", usb_strerror()); | 179 | printf("iphone_muxèfree_client(): when writing, libusb gave me the error: %s\n", usb_strerror()); |
| 180 | 180 | ||
| 181 | bytes = usb_bulk_read(client->phone->device, BULKIN, (char*)client->header, sizeof(usbmux_tcp_header), 800); | 181 | bytes = usb_bulk_read(client->phone->device, BULKIN, (char*)client->header, sizeof(usbmux_tcp_header), 800); |
| 182 | if(debug && bytes < 0) | 182 | if(debug && bytes < 0) |
| @@ -332,7 +332,7 @@ int iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32_t datalen | |||
| 332 | // Free our buffer and continue. | 332 | // Free our buffer and continue. |
| 333 | free(buffer); | 333 | free(buffer); |
| 334 | buffer = NULL; | 334 | buffer = NULL; |
| 335 | return mux_recv(client, data, datalen); // recurse back in to try again | 335 | return iphone_mux_recv(client, data, datalen); // recurse back in to try again |
| 336 | } | 336 | } |
| 337 | 337 | ||
| 338 | // The packet was absolutely meant for us if it hits this point. | 338 | // The packet was absolutely meant for us if it hits this point. |
