summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-31 18:31:21 +0200
committerGravatar Jonathan Beck2008-08-31 19:33:19 +0200
commit8333ca944cc56b4da1ab418c0b890f96f5135210 (patch)
tree63792ef9d2786d23b53e47dd8af9f9055c1a6bef /src/usbmux.c
parent86f61988990daa30c8564e2b26666dd442bd6e65 (diff)
downloadlibplist-8333ca944cc56b4da1ab418c0b890f96f5135210.tar.gz
libplist-8333ca944cc56b4da1ab418c0b890f96f5135210.tar.bz2
use new function signature and few bugfixes.
Diffstat (limited to 'src/usbmux.c')
-rw-r--r--src/usbmux.c4
1 files changed, 2 insertions, 2 deletions
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;
}