summaryrefslogtreecommitdiffstats
path: root/src/afc.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-02 00:25:12 +0200
committerGravatar Martin Szulecki2014-10-02 00:25:12 +0200
commit52708cbb04b5b00aeff68e731abb5ced8fe09afb (patch)
treecbeaa272bc65403e175596b7362c05b6fbfe2643 /src/afc.c
parent07ed9bd789ad7841f40154a6f73c75dab8d6bd00 (diff)
downloadlibimobiledevice-52708cbb04b5b00aeff68e731abb5ced8fe09afb.tar.gz
libimobiledevice-52708cbb04b5b00aeff68e731abb5ced8fe09afb.tar.bz2
afc: Change wrong function return types to match header
Diffstat (limited to 'src/afc.c')
-rw-r--r--src/afc.c10
1 files 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;