diff options
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 0ff420a..152a8df 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c | |||
| @@ -53,7 +53,7 @@ void check_afc(gpointer data) | |||
| 53 | iphone_afc_file_t file = NULL; | 53 | iphone_afc_file_t file = NULL; |
| 54 | char path[50]; | 54 | char path[50]; |
| 55 | sprintf(path, "/Buf%i", ((param *) data)->id); | 55 | sprintf(path, "/Buf%i", ((param *) data)->id); |
| 56 | iphone_afc_open_file(((param *) data)->afc, path, IPHONE_AFC_FILE_WRITE, &file); | 56 | iphone_afc_open_file(((param *) data)->afc, path, AFC_FOPEN_RW, &file); |
| 57 | iphone_afc_write_file(((param *) data)->afc, file, (char *) buf, buffersize, &bytes); | 57 | iphone_afc_write_file(((param *) data)->afc, file, (char *) buf, buffersize, &bytes); |
| 58 | iphone_afc_close_file(((param *) data)->afc, file); | 58 | iphone_afc_close_file(((param *) data)->afc, file); |
| 59 | file = NULL; | 59 | file = NULL; |
| @@ -62,7 +62,7 @@ void check_afc(gpointer data) | |||
| 62 | 62 | ||
| 63 | //now read it | 63 | //now read it |
| 64 | bytes = 0; | 64 | bytes = 0; |
| 65 | iphone_afc_open_file(((param *) data)->afc, path, IPHONE_AFC_FILE_READ, &file); | 65 | iphone_afc_open_file(((param *) data)->afc, path, AFC_FOPEN_RDONLY, &file); |
| 66 | iphone_afc_read_file(((param *) data)->afc, file, (char *) buf2, buffersize, &bytes); | 66 | iphone_afc_read_file(((param *) data)->afc, file, (char *) buf2, buffersize, &bytes); |
| 67 | iphone_afc_close_file(((param *) data)->afc, file); | 67 | iphone_afc_close_file(((param *) data)->afc, file); |
| 68 | if (bytes != buffersize) | 68 | if (bytes != buffersize) |
