From eea922593e61a71d3f231578f1e8c4c7f035ec9c Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 10 Aug 2008 23:36:33 +0200 Subject: Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign Signed-off-by: Matt Colyer --- src/iphone.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/iphone.c') 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 #include #include #include @@ -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; -- cgit v1.1-32-gdbae