diff options
author | Jonathan Beck | 2008-08-02 12:53:32 +0200 |
---|---|---|
committer | Matt Colyer | 2008-08-05 23:28:10 -0700 |
commit | b6ed54477c00e2b4572e898fe0a47aa64a028c26 (patch) | |
tree | f29a2e47e45e5acefd4f0d6fc95e6c828f0b1e34 /src/lockdown.c | |
parent | dceb48d2745014ef68ab218f2257e5f0642d998c (diff) | |
download | libplist-b6ed54477c00e2b4572e898fe0a47aa64a028c26.tar.gz libplist-b6ed54477c00e2b4572e898fe0a47aa64a028c26.tar.bz2 |
fixes some warnings
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/lockdown.c')
-rw-r--r-- | src/lockdown.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 4fd8a66..7d5c16d 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -59,7 +59,7 @@ int lockdownd_recv(lockdownd_client *control, char **dump_data) { char *receive; uint32 datalen = 0, bytes = 0; - if (!control->in_SSL) bytes = mux_recv(control->connection, (char *)&datalen, sizeof(datalen)); + if (!control->in_SSL) bytes = mux_recv(control->iphone, control->connection, (char*)&datalen, sizeof(datalen)); else bytes = gnutls_record_recv(*control->ssl_session, &datalen, sizeof(datalen)); datalen = ntohl(datalen); @@ -107,7 +107,8 @@ int lockdownd_hello(lockdownd_client *control) { char *XML_content; uint32 length; - xmlDocDumpMemory(plist, (xmlChar **)&XML_content, &length); + xmlDocDumpMemory(plist, (xmlChar**)&XML_content, &length); + bytes = lockdownd_send(control, XML_content, length); xmlFree(XML_content); |