From cd55911c83d1ce6f07d22f5f4a29bed627e10e94 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 25 Feb 2022 20:53:39 +0100 Subject: [PATCH] [gettext] explicit cast to char * in n_() --- src/intl/gettext/libintl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intl/gettext/libintl.h b/src/intl/gettext/libintl.h index 311441752..b89bbbeea 100644 --- a/src/intl/gettext/libintl.h +++ b/src/intl/gettext/libintl.h @@ -163,15 +163,15 @@ __(char *file, unsigned int line, char *func, * about charset (usually during initialization or when you don't use terminals * at all), use ngettext() directly. */ static inline char * -n_(char *msg1, char *msg2, unsigned long int n, struct terminal *term) +n_(const char *msg1, const char *msg2, unsigned long int n, struct terminal *term) { /* Prevent useless (and possibly dangerous) calls. */ if (!msg1 || !*msg1) - return msg1; + return (char *)msg1; if (term) intl_set_charset(term); - return (char *) ngettext(msg1, msg2, n); + return (char *)ngettext(msg1, msg2, n); }