[glib-networking] openssl: fix gint64 format string portability issues



commit d2b075a0e4ecd38ca1525b9c5043c0659adc3fb4
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date:   Thu Jun 3 19:48:51 2021 +0200

    openssl: fix gint64 format string portability issues

 tls/openssl/gtlsclientconnection-openssl.c | 2 +-
 tls/openssl/gtlsserverconnection-openssl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/openssl/gtlsclientconnection-openssl.c b/tls/openssl/gtlsclientconnection-openssl.c
index 95428c6..3f641a5 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -331,7 +331,7 @@ set_max_protocol (GTlsClientConnectionOpenssl  *client,
           if (!SSL_CTX_set_max_proto_version (client->ssl_ctx, (int)version))
             {
               g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_MISC,
-                           _("Could not set MAX protocol to %ld: %s"),
+                           _("Could not set MAX protocol to %" G_GINT64_FORMAT ": %s"),
                            version, ERR_error_string (ERR_get_error (), NULL));
               return FALSE;
             }
diff --git a/tls/openssl/gtlsserverconnection-openssl.c b/tls/openssl/gtlsserverconnection-openssl.c
index ab09381..4ebc4c7 100644
--- a/tls/openssl/gtlsserverconnection-openssl.c
+++ b/tls/openssl/gtlsserverconnection-openssl.c
@@ -367,7 +367,7 @@ set_max_protocol (GTlsServerConnectionOpenssl  *server,
           if (!SSL_CTX_set_max_proto_version (server->ssl_ctx, (int)version))
             {
               g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_MISC,
-                           _("Could not set MAX protocol to %ld: %s"),
+                           _("Could not set MAX protocol to %" G_GINT64_FORMAT ": %s"),
                            version, ERR_error_string (ERR_get_error (), NULL));
               return FALSE;
             }


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