[glib-networking/nacho/no-gettext-read-write] Do not make strings translatable in read/write
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/nacho/no-gettext-read-write] Do not make strings translatable in read/write
- Date: Fri, 13 May 2022 13:08:24 +0000 (UTC)
commit 607e9fab13d4b031dd25f6c38cb0499832cfb4dd
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Fri May 13 15:07:19 2022 +0200
Do not make strings translatable in read/write
This shows in the profiler when making lots of read/writes
in an application
Partially fixes #188
tls/gnutls/gtlsconnection-gnutls.c | 8 ++++----
tls/openssl/gtlsconnection-openssl.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 4f85a6b2..0ea7e479 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -1409,7 +1409,7 @@ g_tls_connection_gnutls_read (GTlsConnectionBase *tls,
BEGIN_GNUTLS_IO (gnutls, G_IO_IN, timeout, cancellable);
ret = gnutls_record_recv (priv->session, buffer, count);
- END_GNUTLS_IO (gnutls, G_IO_IN, ret, status, _("Error reading data from TLS socket"), error);
+ END_GNUTLS_IO (gnutls, G_IO_IN, ret, status, "Error reading data from TLS socket", error);
*nread = MAX (ret, 0);
return status;
@@ -1469,7 +1469,7 @@ g_tls_connection_gnutls_read_message (GTlsConnectionBase *tls,
gnutls_packet_deinit (packet);
}
- END_GNUTLS_IO (gnutls, G_IO_IN, ret, status, _("Error reading data from TLS socket"), error);
+ END_GNUTLS_IO (gnutls, G_IO_IN, ret, status, "Error reading data from TLS socket", error);
*nread = MAX (ret, 0);
return status;
@@ -1491,7 +1491,7 @@ g_tls_connection_gnutls_write (GTlsConnectionBase *tls,
BEGIN_GNUTLS_IO (gnutls, G_IO_OUT, timeout, cancellable);
ret = gnutls_record_send (priv->session, buffer, count);
- END_GNUTLS_IO (gnutls, G_IO_OUT, ret, status, _("Error writing data to TLS socket"), error);
+ END_GNUTLS_IO (gnutls, G_IO_OUT, ret, status, "Error writing data to TLS socket", error);
*nwrote = MAX (ret, 0);
return status;
@@ -1554,7 +1554,7 @@ g_tls_connection_gnutls_write_message (GTlsConnectionBase *tls,
BEGIN_GNUTLS_IO (gnutls, G_IO_OUT, timeout, cancellable);
ret = gnutls_record_uncork (priv->session, 0 /* flags */);
- END_GNUTLS_IO (gnutls, G_IO_OUT, ret, status, _("Error writing data to TLS socket"), error);
+ END_GNUTLS_IO (gnutls, G_IO_OUT, ret, status, "Error writing data to TLS socket", error);
*nwrote = MAX (ret, 0);
return status;
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 265845ee..1905472d 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -925,7 +925,7 @@ g_tls_connection_openssl_read (GTlsConnectionBase *tls,
status = perform_openssl_io (G_TLS_CONNECTION_OPENSSL (tls), G_IO_IN,
perform_read, &req, timeout, cancellable, &ret,
- error, _("Error reading data from TLS socket"));
+ error, "Error reading data from TLS socket");
*nread = MAX (ret, 0);
return status;
@@ -1004,7 +1004,7 @@ g_tls_connection_openssl_write (GTlsConnectionBase *tls,
status = perform_openssl_io (G_TLS_CONNECTION_OPENSSL (tls), G_IO_OUT,
perform_write, &req, timeout, cancellable, &ret,
- error, _("Error writing data to TLS socket"));
+ error, "Error writing data to TLS socket");
*nwrote = MAX (ret, 0);
return status;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]