diff options
author | Colin Walters <walters@verbum.org> | 2011-11-04 10:58:46 +0800 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-11-04 10:58:46 +0800 |
commit | 84d946f81001605bc6608e8a0ad5a19eaa88136c (patch) | |
tree | f4dd2833f3dc6c09c02edab2060c8106aefcb52f | |
parent | 3e8b4d35580674c0271de8f12278625de963c9f6 (diff) | |
download | gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.tar gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.tar.gz gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.tar.bz2 gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.tar.lz gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.tar.xz gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.tar.zst gsoc2013-empathy-84d946f81001605bc6608e8a0ad5a19eaa88136c.zip |
tls: Cast argument to gcr_simple_certificate_new to avoid compiler warning
Gcr correctly treats these as unsigned.
-rw-r--r-- | libempathy/empathy-tls-verifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c index 265f34843..c22eaf063 100644 --- a/libempathy/empathy-tls-verifier.c +++ b/libempathy/empathy-tls-verifier.c @@ -526,7 +526,7 @@ empathy_tls_verifier_verify_async (EmpathyTLSVerifier *self, chain = gcr_certificate_chain_new (); for (idx = 0; idx < cert_data->len; ++idx) { data = g_ptr_array_index (cert_data, idx); - cert = gcr_simple_certificate_new (data->data, data->len); + cert = gcr_simple_certificate_new ((guchar*)data->data, data->len); gcr_certificate_chain_add (chain, cert); g_object_unref (cert); } |