summaryrefslogtreecommitdiffstats
path: root/dev/afccheck.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-05-08 08:26:38 -0700
committerGravatar Matt Colyer2009-05-08 08:26:38 -0700
commita00db256b55698eea91efab16b6be883246249ca (patch)
tree52501080a57f5c933e3888eced92cd7b30b90cae /dev/afccheck.c
parent2ce660f06cd9399d8aaf3c585130ba6d410b1d17 (diff)
downloadlibimobiledevice-a00db256b55698eea91efab16b6be883246249ca.tar.gz
libimobiledevice-a00db256b55698eea91efab16b6be883246249ca.tar.bz2
file open modes updated
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'dev/afccheck.c')
-rw-r--r--dev/afccheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c
index 0ff420a..152a8df 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -53,7 +53,7 @@ void check_afc(gpointer data)
iphone_afc_file_t file = NULL;
char path[50];
sprintf(path, "/Buf%i", ((param *) data)->id);
- iphone_afc_open_file(((param *) data)->afc, path, IPHONE_AFC_FILE_WRITE, &file);
+ iphone_afc_open_file(((param *) data)->afc, path, AFC_FOPEN_RW, &file);
iphone_afc_write_file(((param *) data)->afc, file, (char *) buf, buffersize, &bytes);
iphone_afc_close_file(((param *) data)->afc, file);
file = NULL;
@@ -62,7 +62,7 @@ void check_afc(gpointer data)
//now read it
bytes = 0;
- iphone_afc_open_file(((param *) data)->afc, path, IPHONE_AFC_FILE_READ, &file);
+ iphone_afc_open_file(((param *) data)->afc, path, AFC_FOPEN_RDONLY, &file);
iphone_afc_read_file(((param *) data)->afc, file, (char *) buf2, buffersize, &bytes);
iphone_afc_close_file(((param *) data)->afc, file);
if (bytes != buffersize)