mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[libintl] const in n_
This commit is contained in:
parent
a86f992c42
commit
1e7de877d3
@ -45,7 +45,7 @@ _(const char *msg, struct terminal *term)
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
return gettext_noop(msg1);
|
||||
}
|
||||
|
@ -121,11 +121,11 @@ __(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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user