afc: Change wrong function return types to match header
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 @@
 	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 @@
 	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 @@
 	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;