summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-11-28 04:50:01 +0100
committerGravatar Matt Colyer2009-11-30 21:02:49 -0800
commitfe239d46809996def06502d55f8b34b46e475e53 (patch)
tree2487169850418d085638b2ee20675822861dc40d /src
parent7adc81dddd764b0ef76fefd73852b835d3211b9b (diff)
downloadlibimobiledevice-fe239d46809996def06502d55f8b34b46e475e53.tar.gz
libimobiledevice-fe239d46809996def06502d55f8b34b46e475e53.tar.bz2
afc_truncate: use uint64_t instead of off_t
This makes afc_truncate look more like afc_file_truncate which is also using uint64_t for the file size. [#82 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src')
-rw-r--r--src/AFC.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 15d746e..956c8fc 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -1157,7 +1157,7 @@ afc_error_t afc_file_truncate(afc_client_t client, uint64_t handle, uint64_t new
* @return AFC_E_SUCCESS if everything went well, AFC_E_INVALID_ARGUMENT
* if arguments are NULL or invalid, AFC_E_NOT_ENOUGH_DATA otherwise.
*/
-afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize)
+afc_error_t afc_truncate(afc_client_t client, const char *path, uint64_t newsize)
{
char *response = NULL;
char *send = (char *) malloc(sizeof(char) * (strlen(path) + 1 + 8));