diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/Makefile.am | 3 | ||||
-rw-r--r-- | dev/lckdclient.c | 1 | ||||
-rw-r--r-- | dev/main.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/dev/Makefile.am b/dev/Makefile.am index 4833728..d116581 100644 --- a/dev/Makefile.am +++ b/dev/Makefile.am @@ -16,4 +16,5 @@ lckd_client_LDADD = ../src/libiphone.la afccheck_SOURCES = afccheck.c afccheck_CFLAGS = $(AM_CFLAGS) afccheck_LDFLAGS = $(AM_LDFLAGS) -afccheck_LDADD = ../src/libiphone.la
\ No newline at end of file +afccheck_LDADD = ../src/libiphone.la + diff --git a/dev/lckdclient.c b/dev/lckdclient.c index 96bc27d..c96f052 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c @@ -20,6 +20,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <glib.h> #include <readline/readline.h> @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) iphone_afc_get_file_attr(afc, "/iTunesOnTheGoPlaylist.plist", &stbuf); if (IPHONE_E_SUCCESS == iphone_afc_open_file(afc, "/iTunesOnTheGoPlaylist.plist", IPHONE_AFC_FILE_READ, &my_file) && my_file) { - printf("A file size: %i\n", stbuf.st_size); + printf("A file size: %i\n", (int) stbuf.st_size); char *file_data = (char *) malloc(sizeof(char) * stbuf.st_size); iphone_afc_read_file(afc, my_file, file_data, stbuf.st_size, &bytes); if (bytes >= 0) { |