[glib-networking/mcatanzaro/base-rebase: 27/38] base, openssl: use consistent code style for casts



commit 5c113beea6b250a9ce05e9596f374ec0ebfbfe38
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Apr 7 16:32:17 2019 -0500

    base, openssl: use consistent code style for casts
    
    As in bb69e58f7e9ddf9983183c5d19108d4ca634d332

 tls/base/gtlsconnection-base.c       | 2 +-
 tls/openssl/gtlsconnection-openssl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/base/gtlsconnection-base.c b/tls/base/gtlsconnection-base.c
index 79ffbfd..4f447be 100644
--- a/tls/base/gtlsconnection-base.c
+++ b/tls/base/gtlsconnection-base.c
@@ -805,7 +805,7 @@ tls_source_sync (GTlsConnectionBaseSource *tls_source)
   gboolean io_waiting, op_waiting;
 
   /* Was the source destroyed earlier in this main context iteration? */
-  if (g_source_is_destroyed ((GSource *) tls_source))
+  if (g_source_is_destroyed ((GSource *)tls_source))
     return;
 
   g_mutex_lock (&priv->op_mutex);
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 0600dea..38a5b9a 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -304,7 +304,7 @@ verify_ocsp_response (GTlsConnectionOpenssl *openssl,
   if (p == NULL)
     return 0;
 
-  resp = d2i_OCSP_RESPONSE (NULL, (const unsigned char **) &p, len);
+  resp = d2i_OCSP_RESPONSE (NULL, (const unsigned char **)&p, len);
   if (resp == NULL)
     return G_TLS_CERTIFICATE_GENERIC_ERROR;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]