aboutsummaryrefslogtreecommitdiffstats
path: root/community/irssi-xmpp/g_const_return.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/irssi-xmpp/g_const_return.patch')
-rw-r--r--community/irssi-xmpp/g_const_return.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/irssi-xmpp/g_const_return.patch b/community/irssi-xmpp/g_const_return.patch
new file mode 100644
index 00000000000..68a5bcfd218
--- /dev/null
+++ b/community/irssi-xmpp/g_const_return.patch
@@ -0,0 +1,43 @@
+Patch-Source: https://github.com/cdidier/irssi-xmpp/commit/fda59f8.patch
+
+
+From fda59f86cbce6a2e911f6d4cf8f9e8345d29c253 Mon Sep 17 00:00:00 2001
+From: Colin Didier <colin.didier@devialet.com>
+Date: Thu, 31 Oct 2019 17:33:02 +0100
+Subject: [PATCH] quiet const warning
+
+---
+ src/core/tools.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/core/tools.c b/src/core/tools.c
+index 9180af6..e179aad 100644
+--- a/src/core/tools.c
++++ b/src/core/tools.c
+@@ -28,7 +28,7 @@
+ static const char *utf8_charset = "UTF-8";
+
+ static gboolean
+-xmpp_get_local_charset(G_CONST_RETURN char **charset)
++xmpp_get_local_charset(const char **charset)
+ {
+ *charset = settings_get_str("term_charset");
+ if (is_valid_charset(*charset))
+@@ -39,7 +39,7 @@ xmpp_get_local_charset(G_CONST_RETURN char **charset)
+ char *
+ xmpp_recode_out(const char *str)
+ {
+- G_CONST_RETURN char *charset;
++ const char *charset;
+ char *recoded, *stripped;
+
+ if (str == NULL || *str == '\0')
+@@ -59,7 +59,7 @@ xmpp_recode_out(const char *str)
+ char *
+ xmpp_recode_in(const char *str)
+ {
+- G_CONST_RETURN char *charset;
++ const char *charset;
+ char *recoded, *to = NULL;
+
+ if (str == NULL || *str == '\0')