summaryrefslogtreecommitdiffstats
path: root/dev/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev/main.c')
-rw-r--r--dev/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/main.c b/dev/main.c
index 3e5860e..eb74c89 100644
--- a/dev/main.c
+++ b/dev/main.c
@@ -167,8 +167,8 @@ int main(int argc, char *argv[])
167 } 167 }
168 168
169 if (AFC_E_SUCCESS == 169 if (AFC_E_SUCCESS ==
170 afc_file_open(afc, "/readme.libiphone.fx", AFC_FOPEN_RDONLY, &my_file) && my_file) { 170 afc_open_file(afc, "/readme.libiphone.fx", AFC_FOPEN_RDONLY, &my_file) && my_file) {
171 printf("A file size: %llu\n", fsize); 171 printf("A file size: %llu\n", (long long)fsize);
172 char *file_data = (char *) malloc(sizeof(char) * fsize); 172 char *file_data = (char *) malloc(sizeof(char) * fsize);
173 afc_file_read(afc, my_file, file_data, fsize, &bytes); 173 afc_file_read(afc, my_file, file_data, fsize, &bytes);
174 if (bytes > 0) { 174 if (bytes > 0) {