summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-06 01:19:12 +0200
committerGravatar Martin Szulecki2013-09-17 11:43:34 +0200
commit49eb72122d3d95f6aa80f6b17c393d75fd6077bc (patch)
tree78b8459804c14ca1545dbbc7689f94e11c7c8669 /common
parent55869758d72338696139806f32cee696848f9875 (diff)
downloadlibimobiledevice-49eb72122d3d95f6aa80f6b17c393d75fd6077bc.tar.gz
libimobiledevice-49eb72122d3d95f6aa80f6b17c393d75fd6077bc.tar.bz2
Fix broken build of GnuTLS and silence two compiler warnings
Diffstat (limited to 'common')
-rw-r--r--common/userpref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/userpref.c b/common/userpref.c
index 4f5d6d7..571b660 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -986,7 +986,7 @@ static userpref_error_t userpref_device_record_import_key(const char* udid, cons
key->size = length;
ret = USERPREF_E_SUCCESS;
#else
- key_data_t pem = { buffer, length };
+ key_data_t pem = { (unsigned char*)buffer, length };
if (GNUTLS_E_SUCCESS == gnutls_x509_privkey_import(key, &pem, GNUTLS_X509_FMT_PEM))
ret = USERPREF_E_SUCCESS;
else
@@ -1036,7 +1036,7 @@ static userpref_error_t userpref_device_record_import_crt(const char* udid, cons
cert->size = length;
ret = USERPREF_E_SUCCESS;
#else
- key_data_t pem = { buffer, length };
+ key_data_t pem = { (unsigned char*)buffer, length };
if (GNUTLS_E_SUCCESS == gnutls_x509_crt_import(cert, &pem, GNUTLS_X509_FMT_PEM))
ret = USERPREF_E_SUCCESS;
else