Commit b6ed5447 authored by Jonathan Beck's avatar Jonathan Beck Committed by Matt Colyer

fixes some warnings

Signed-off-by: 's avatarMatt Colyer <matt@colyer.name>
parent dceb48d2
......@@ -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);
......
......@@ -44,7 +44,7 @@ char* get_host_id()
gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL);
if (loc_host_id)
host_id = strdup(loc_host_id);
host_id = strdup((char*)loc_host_id);
g_free(loc_host_id);
}
g_key_file_free(key_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment