summaryrefslogtreecommitdiffstats
path: root/dev/main.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-11-25 19:14:27 +0100
committerGravatar Jonathan Beck2008-11-25 19:14:27 +0100
commitaed2c025f6e47dc769675e564cc574adc496a88a (patch)
tree6cb14e4c511dabc40fdf6c24714a2be48567f847 /dev/main.c
parent0bca81e7c8ce5ba53390271e5c7eaa7a5f281c91 (diff)
downloadlibplist-aed2c025f6e47dc769675e564cc574adc496a88a.tar.gz
libplist-aed2c025f6e47dc769675e564cc574adc496a88a.tar.bz2
fix some warnings and indent
Diffstat (limited to 'dev/main.c')
-rw-r--r--dev/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/main.c b/dev/main.c
index 2dbfb4a..4974eef 100644
--- a/dev/main.c
+++ b/dev/main.c
@@ -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) {