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



commit f1df8ea5b3ca1fec1840133ac096555f510780ae
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Fri Jun 4 08:18:58 2021 -0500

    Revert "openssl: fix gint64 format string portability issues"
    
    This reverts commit d2b075a0e4ecd38ca1525b9c5043c0659adc3fb4.
    
    This broke gettext.

 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 4bbd237..aad011f 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -333,7 +333,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 %" G_GINT64_FORMAT ": %s"),
+                           _("Could not set MAX protocol to %ld: %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 69b65f2..a809f60 100644
--- a/tls/openssl/gtlsserverconnection-openssl.c
+++ b/tls/openssl/gtlsserverconnection-openssl.c
@@ -369,7 +369,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 %" G_GINT64_FORMAT ": %s"),
+                           _("Could not set MAX protocol to %ld: %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]