[empathy] tls: Cast argument to gcr_simple_certificate_new to avoid compiler warning
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] tls: Cast argument to gcr_simple_certificate_new to avoid compiler warning
- Date: Fri, 4 Nov 2011 03:00:00 +0000 (UTC)
commit 84d946f81001605bc6608e8a0ad5a19eaa88136c
Author: Colin Walters <walters verbum org>
Date: Thu Nov 3 22:58:46 2011 -0400
tls: Cast argument to gcr_simple_certificate_new to avoid compiler warning
Gcr correctly treats these as unsigned.
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 265f348..c22eaf0 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]