diff options
| -rw-r--r-- | include/libiphone/afc.h | 2 | ||||
| -rw-r--r-- | src/AFC.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libiphone/afc.h b/include/libiphone/afc.h index 94eb02e..7eff678 100644 --- a/include/libiphone/afc.h +++ b/include/libiphone/afc.h | |||
| @@ -103,7 +103,7 @@ afc_error_t afc_file_truncate(afc_client_t client, uint64_t handle, uint64_t new | |||
| 103 | afc_error_t afc_remove_path(afc_client_t client, const char *path); | 103 | afc_error_t afc_remove_path(afc_client_t client, const char *path); |
| 104 | afc_error_t afc_rename_path(afc_client_t client, const char *from, const char *to); | 104 | afc_error_t afc_rename_path(afc_client_t client, const char *from, const char *to); |
| 105 | afc_error_t afc_make_directory(afc_client_t client, const char *dir); | 105 | afc_error_t afc_make_directory(afc_client_t client, const char *dir); |
| 106 | afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize); | 106 | afc_error_t afc_truncate(afc_client_t client, const char *path, uint64_t newsize); |
| 107 | afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname); | 107 | afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname); |
| 108 | afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mtime); | 108 | afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mtime); |
| 109 | 109 | ||
| @@ -1157,7 +1157,7 @@ afc_error_t afc_file_truncate(afc_client_t client, uint64_t handle, uint64_t new | |||
| 1157 | * @return AFC_E_SUCCESS if everything went well, AFC_E_INVALID_ARGUMENT | 1157 | * @return AFC_E_SUCCESS if everything went well, AFC_E_INVALID_ARGUMENT |
| 1158 | * if arguments are NULL or invalid, AFC_E_NOT_ENOUGH_DATA otherwise. | 1158 | * if arguments are NULL or invalid, AFC_E_NOT_ENOUGH_DATA otherwise. |
| 1159 | */ | 1159 | */ |
| 1160 | afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize) | 1160 | afc_error_t afc_truncate(afc_client_t client, const char *path, uint64_t newsize) |
| 1161 | { | 1161 | { |
| 1162 | char *response = NULL; | 1162 | char *response = NULL; |
| 1163 | char *send = (char *) malloc(sizeof(char) * (strlen(path) + 1 + 8)); | 1163 | char *send = (char *) malloc(sizeof(char) * (strlen(path) + 1 + 8)); |
