diff options
author | Martin Szulecki | 2014-10-02 00:25:12 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-02 00:25:12 +0200 |
commit | 52708cbb04b5b00aeff68e731abb5ced8fe09afb (patch) | |
tree | cbeaa272bc65403e175596b7362c05b6fbfe2643 /src | |
parent | 07ed9bd789ad7841f40154a6f73c75dab8d6bd00 (diff) | |
download | libimobiledevice-52708cbb04b5b00aeff68e731abb5ced8fe09afb.tar.gz libimobiledevice-52708cbb04b5b00aeff68e731abb5ced8fe09afb.tar.bz2 |
afc: Change wrong function return types to match header
Diffstat (limited to 'src')
-rw-r--r-- | src/afc.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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; |