diff options
Diffstat (limited to 'src/iphone.c')
| -rw-r--r-- | src/iphone.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/iphone.c b/src/iphone.c index 85d136c..b471e35 100644 --- a/src/iphone.c +++ b/src/iphone.c | |||
| @@ -316,7 +316,7 @@ iphone_error_t iphone_connection_send(iphone_connection_t connection, const char | |||
| 316 | * Internally used function for receiving raw data over the given connection | 316 | * Internally used function for receiving raw data over the given connection |
| 317 | * using a timeout. | 317 | * using a timeout. |
| 318 | */ | 318 | */ |
| 319 | static iphone_error_t internal_connection_recv_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout) | 319 | static iphone_error_t internal_connection_receive_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout) |
| 320 | { | 320 | { |
| 321 | if (!connection) { | 321 | if (!connection) { |
| 322 | return IPHONE_E_INVALID_ARG; | 322 | return IPHONE_E_INVALID_ARG; |
| @@ -365,13 +365,13 @@ iphone_error_t iphone_connection_receive_timeout(iphone_connection_t connection, | |||
| 365 | *recv_bytes = 0; | 365 | *recv_bytes = 0; |
| 366 | return IPHONE_E_SSL_ERROR; | 366 | return IPHONE_E_SSL_ERROR; |
| 367 | } | 367 | } |
| 368 | return internal_connection_recv_timeout(connection, data, len, recv_bytes, timeout); | 368 | return internal_connection_receive_timeout(connection, data, len, recv_bytes, timeout); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | /** | 371 | /** |
| 372 | * Internally used function for receiving raw data over the given connection. | 372 | * Internally used function for receiving raw data over the given connection. |
| 373 | */ | 373 | */ |
| 374 | static iphone_error_t internal_connection_recv(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes) | 374 | static iphone_error_t internal_connection_receive(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes) |
| 375 | { | 375 | { |
| 376 | if (!connection) { | 376 | if (!connection) { |
| 377 | return IPHONE_E_INVALID_ARG; | 377 | return IPHONE_E_INVALID_ARG; |
| @@ -419,7 +419,7 @@ iphone_error_t iphone_connection_receive(iphone_connection_t connection, char *d | |||
| 419 | *recv_bytes = 0; | 419 | *recv_bytes = 0; |
| 420 | return IPHONE_E_SSL_ERROR; | 420 | return IPHONE_E_SSL_ERROR; |
| 421 | } | 421 | } |
| 422 | return internal_connection_recv(connection, data, len, recv_bytes); | 422 | return internal_connection_receive(connection, data, len, recv_bytes); |
| 423 | } | 423 | } |
| 424 | 424 | ||
| 425 | iphone_error_t iphone_device_get_handle(iphone_device_t device, uint32_t *handle) | 425 | iphone_error_t iphone_device_get_handle(iphone_device_t device, uint32_t *handle) |
| @@ -463,7 +463,7 @@ static ssize_t internal_ssl_read(gnutls_transport_ptr_t transport, char *buffer, | |||
| 463 | 463 | ||
| 464 | /* repeat until we have the full data or an error occurs */ | 464 | /* repeat until we have the full data or an error occurs */ |
| 465 | do { | 465 | do { |
| 466 | if ((res = internal_connection_recv(connection, recv_buffer, this_len, (uint32_t*)&bytes)) != IPHONE_E_SUCCESS) { | 466 | if ((res = internal_connection_receive(connection, recv_buffer, this_len, (uint32_t*)&bytes)) != IPHONE_E_SUCCESS) { |
| 467 | debug_info("ERROR: iphone_connection_receive returned %d", res); | 467 | debug_info("ERROR: iphone_connection_receive returned %d", res); |
| 468 | return res; | 468 | return res; |
| 469 | } | 469 | } |
