From 8d5c88acc75871d2ec59793f312dc0fe0c54351f Mon Sep 17 00:00:00 2001 From: Zach C Date: Tue, 12 Aug 2008 00:31:56 -0700 Subject: Fixed seeking, also connections are no longer added twice. Signed-off-by: Matt Colyer --- src/main.c | 2 +- src/usbmux.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 302b886..31c2a76 100644 --- a/src/main.c +++ b/src/main.c @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) { printf("Seek & read\n"); my_file = afc_open_file(afc, "/readme.libiphone.fx", AFC_FILE_READ); bytes = afc_seek_file(afc, my_file, 5); - if (!bytes) printf("WARN: SEEK DID NOT WORK\n"); + if (bytes) printf("WARN: SEEK DID NOT WORK\n"); char *threeletterword = (char*)malloc(sizeof(char) * 5); bytes = afc_read_file(afc, my_file, threeletterword, 3); threeletterword[3] = '\0'; diff --git a/src/usbmux.c b/src/usbmux.c index 83797dd..d2ef49f 100644 --- a/src/usbmux.c +++ b/src/usbmux.c @@ -129,7 +129,6 @@ usbmux_connection *mux_connect(iPhone *phone, uint16 s_port, uint16 d_port) { new_connection->header->tcp_flags = 0x10; new_connection->header->scnt = 1; new_connection->header->ocnt = 1; - add_connection(new_connection); new_connection->phone = phone; new_connection->recv_buffer = NULL; new_connection->r_len = 0; -- cgit v1.1-32-gdbae