[glib-networking: 35/129] Fix warnings pointed out by the new flags added to meson
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking: 35/129] Fix warnings pointed out by the new flags added to meson
- Date: Sat, 2 Feb 2019 22:46:20 +0000 (UTC)
commit b8d66d389cc7817691a5b39dd1eaa10907453223
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Sun Apr 16 18:59:15 2017 +0200
Fix warnings pointed out by the new flags added to meson
tls/openssl/gtlsclientconnection-openssl.c | 2 +-
tls/openssl/openssl-module.c | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/tls/openssl/gtlsclientconnection-openssl.c b/tls/openssl/gtlsclientconnection-openssl.c
index 26f4449..d82fd73 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -471,7 +471,7 @@ g_tls_client_connection_openssl_initable_init (GInitable *initable,
return FALSE;
}
- data_index = SSL_get_ex_new_index (0, "gtlsclientconnection", NULL, NULL, NULL);
+ data_index = SSL_get_ex_new_index (0, (void *)"gtlsclientconnection", NULL, NULL, NULL);
SSL_set_ex_data (priv->ssl, data_index, client);
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
diff --git a/tls/openssl/openssl-module.c b/tls/openssl/openssl-module.c
index f58aed3..39b60cd 100644
--- a/tls/openssl/openssl-module.c
+++ b/tls/openssl/openssl-module.c
@@ -61,9 +61,5 @@ g_io_module_unload (GIOModule *module)
gchar **
g_io_module_query (void)
{
- gchar *eps[] = {
- G_TLS_BACKEND_EXTENSION_POINT_NAME,
- NULL
- };
- return g_strdupv (eps);
+ return g_strsplit (G_TLS_BACKEND_EXTENSION_POINT_NAME, "!", -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]