diff options
author | Martin Szulecki | 2009-07-07 17:58:48 +0200 |
---|---|---|
committer | Martin Szulecki | 2009-07-07 17:58:48 +0200 |
commit | c9fd7ad7b49ed65ffae316ca19f54d54c5d6e320 (patch) | |
tree | b6da02e07209829f9d17f572829978535ab3671b /dev/afccheck.c | |
parent | b9ded23b93310b52843a18c07c176536e44445b5 (diff) | |
parent | 6de08b1e12946b85a595f82c1c04391d70d8b828 (diff) | |
download | libimobiledevice-c9fd7ad7b49ed65ffae316ca19f54d54c5d6e320.tar.gz libimobiledevice-c9fd7ad7b49ed65ffae316ca19f54d54c5d6e320.tar.bz2 |
Merge branch 'master' of git://github.com/MattColyer/libiphone into martin
Diffstat (limited to 'dev/afccheck.c')
-rw-r--r-- | dev/afccheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c index 2f7d92c..965981b 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c @@ -50,13 +50,13 @@ void check_afc(gpointer data) } //now writes buffer on iphone - iphone_afc_file_t file = NULL; + uint64_t file = 0; char path[50]; sprintf(path, "/Buf%i", ((param *) data)->id); 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; + file = 0; if (bytes != buffersize) printf("Write operation failed\n"); |