summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/afccheck.c2
-rw-r--r--dev/iphoneinfo.c2
-rw-r--r--dev/main.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c
index a9b666e..b3fa102 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -38,7 +38,7 @@ typedef struct {
} param;
-void check_afc(gpointer data)
+static void check_afc(gpointer data)
{
//prepare a buffer
unsigned int buffersize = BUFFER_SIZE * sizeof(unsigned int);
diff --git a/dev/iphoneinfo.c b/dev/iphoneinfo.c
index 790804c..7e275b2 100644
--- a/dev/iphoneinfo.c
+++ b/dev/iphoneinfo.c
@@ -231,7 +231,7 @@ void plist_node_to_string(plist_t *node)
case PLIST_UINT:
plist_get_uint_val(node, &u);
- printf("%llu\n", u);
+ printf("%llu\n", (long long)u);
break;
case PLIST_REAL:
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[])
}
if (AFC_E_SUCCESS ==
- afc_file_open(afc, "/readme.libiphone.fx", AFC_FOPEN_RDONLY, &my_file) && my_file) {
- printf("A file size: %llu\n", fsize);
+ afc_open_file(afc, "/readme.libiphone.fx", AFC_FOPEN_RDONLY, &my_file) && my_file) {
+ printf("A file size: %llu\n", (long long)fsize);
char *file_data = (char *) malloc(sizeof(char) * fsize);
afc_file_read(afc, my_file, file_data, fsize, &bytes);
if (bytes > 0) {