diff options
author | Christophe Fergeau | 2009-07-24 21:35:13 +0200 |
---|---|---|
committer | Matt Colyer | 2009-07-26 19:21:08 -0700 |
commit | 53ed3be0463522cc3f8028def453c78be10f165b (patch) | |
tree | e158cdce40e8d0dc23d6d374ed18c78714fe37de /dev | |
parent | f6eda5e6ba53e77389b68e7a26f961c0f5025e4e (diff) | |
download | libimobiledevice-53ed3be0463522cc3f8028def453c78be10f165b.tar.gz libimobiledevice-53ed3be0463522cc3f8028def453c78be10f165b.tar.bz2 |
fix most -Wall warnings
add missing includes, add some casts to avoid format warnings,
mark one function as static. There are still warnings about
unused argc/argv
[#61 state:resolved]
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'dev')
-rw-r--r-- | dev/afccheck.c | 2 | ||||
-rw-r--r-- | dev/iphoneinfo.c | 2 | ||||
-rw-r--r-- | dev/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c index 9174e32..cf75e71 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 3dfda5d..9d690f9 100644 --- a/dev/iphoneinfo.c +++ b/dev/iphoneinfo.c @@ -206,7 +206,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: @@ -167,7 +167,7 @@ int main(int argc, char *argv[]) if (IPHONE_E_SUCCESS == afc_open_file(afc, "/readme.libiphone.fx", AFC_FOPEN_RDONLY, &my_file) && my_file) { - printf("A file size: %llu\n", fsize); + printf("A file size: %llu\n", (long long)fsize); char *file_data = (char *) malloc(sizeof(char) * fsize); afc_read_file(afc, my_file, file_data, fsize, &bytes); if (bytes > 0) { |