From 52708cbb04b5b00aeff68e731abb5ced8fe09afb Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 2 Oct 2014 00:25:12 +0200 Subject: afc: Change wrong function return types to match header --- src/afc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/afc.c b/src/afc.c index 1263eb9..4a50131 100644 --- a/src/afc.c +++ b/src/afc.c @@ -612,9 +612,7 @@ afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***inf return ret; } -idevice_error_t -afc_file_open(afc_client_t client, const char *filename, - afc_file_mode_t file_mode, uint64_t *handle) +afc_error_t afc_file_open(afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle) { if (!client || !client->parent || !client->afc_packet) return AFC_E_INVALID_ARG; @@ -662,8 +660,7 @@ afc_file_open(afc_client_t client, const char *filename, return ret; } -idevice_error_t -afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) +afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) { char *input = NULL; uint32_t current_count = 0, bytes_loc = 0; @@ -716,8 +713,7 @@ afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, return ret; } -idevice_error_t -afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) +afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) { uint32_t current_count = 0; uint32_t bytes_loc = 0; -- cgit v1.1-32-gdbae