From 9d42f69a20fae3e2b3f48192b9c328f0b3d7238c Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 12 Jun 2015 10:10:58 +0100 Subject: [PATCH] make xchat_gettext return const char* --- src/common/plugin.c | 2 +- src/common/plugin.h | 2 +- src/common/xchat-plugin.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/plugin.c b/src/common/plugin.c index 7b8bcfe..4707578 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -1523,7 +1523,7 @@ xchat_emit_print (xchat_plugin *ph, const char *event_name, ...) return i; } -char * +const char * xchat_gettext (xchat_plugin *ph, const char *msgid) { /* so that plugins can use xchat's internal gettext strings. */ diff --git a/src/common/plugin.h b/src/common/plugin.h index b0c89d1..ca526f9 100644 --- a/src/common/plugin.h +++ b/src/common/plugin.h @@ -84,7 +84,7 @@ struct _xchat_plugin time_t (*xchat_list_time) (xchat_plugin *ph, xchat_list *xlist, const char *name); - char *(*xchat_gettext) (xchat_plugin *ph, + const char *(*xchat_gettext) (xchat_plugin *ph, const char *msgid); void (*xchat_send_modes) (xchat_plugin *ph, const char **targets, diff --git a/src/common/xchat-plugin.h b/src/common/xchat-plugin.h index 43f9ea2..3e68e0b 100644 --- a/src/common/xchat-plugin.h +++ b/src/common/xchat-plugin.h @@ -123,7 +123,7 @@ struct _xchat_plugin time_t (*xchat_list_time) (xchat_plugin *ph, xchat_list *xlist, const char *name); - char *(*xchat_gettext) (xchat_plugin *ph, + const char *(*xchat_gettext) (xchat_plugin *ph, const char *msgid); void (*xchat_send_modes) (xchat_plugin *ph, const char **targets, @@ -270,7 +270,7 @@ int xchat_emit_print (xchat_plugin *ph, const char *event_name, ...); -char * +const char * xchat_gettext (xchat_plugin *ph, const char *msgid); -- 2.11.4.GIT