diff options
author | Christophe Fergeau | 2008-08-10 23:36:33 +0200 |
---|---|---|
committer | Matt Colyer | 2008-08-11 09:39:06 -0700 |
commit | eea922593e61a71d3f231578f1e8c4c7f035ec9c (patch) | |
tree | 823d5ae4e53be4b83377ab205b1aed94fe06c021 /src/iphone.c | |
parent | 323459826aeea8b88872e14af9839a0912a80503 (diff) | |
download | libplist-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.gz libplist-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.bz2 |
Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/iphone.c')
-rw-r--r-- | src/iphone.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/iphone.c b/src/iphone.c index 426b629..558dd9a 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -21,6 +21,7 @@ #include "usbmux.h" #include "iphone.h" +#include <arpa/inet.h> #include <usb.h> #include <stdio.h> #include <stdlib.h> @@ -141,13 +142,13 @@ int send_to_phone(iPhone *phone, char *data, int datalen) { if (!phone) return -1; int bytes = 0; // it may die here - if (debug) printf("dying here?\ndatalen = %i\ndata = %x\n", datalen, data); + if (debug) printf("dying here?\ndatalen = %i\ndata = %p\n", datalen, data); bytes = usb_bulk_write(phone->device, BULKOUT, data, datalen, 800); if (debug) printf("noooo...?\n"); if (bytes < datalen) { if(debug && bytes < 0) - printf("send_to_iphone(): libusb gave me the error %d: %s\n", bytes, usb_strerror(), strerror(-bytes)); + printf("send_to_iphone(): libusb gave me the error %d: %s - %s\n", bytes, usb_strerror(), strerror(-bytes)); return -1; } else { return bytes; |