From 8333ca944cc56b4da1ab418c0b890f96f5135210 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sun, 31 Aug 2008 18:31:21 +0200 Subject: use new function signature and few bugfixes. --- src/usbmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usbmux.c') diff --git a/src/usbmux.c b/src/usbmux.c index 8d85245..35f2ef3 100644 --- a/src/usbmux.c +++ b/src/usbmux.c @@ -250,7 +250,7 @@ iphone_error_t iphone_mux_send ( iphone_umux_client_t client, const char *data, *sent_bytes = *sent_bytes - 28; // actual length sent. :/ } - return IPHONE_E_UNKNOWN_ERROR; + return IPHONE_E_SUCCESS; } /** This is a higher-level USBMuxTCP-like function @@ -371,6 +371,6 @@ iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32 // If we get to this point, 'tis probably bad. if (debug) printf("mux_recv: Heisenbug: bytes and datalen not matching up\n"); - return -1; + return IPHONE_E_UNKNOWN_ERROR; } -- cgit v1.1-32-gdbae