mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 05:57:16 +00:00
libc/gettextdomain: Fix the typo error
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f5ddbb317f
commit
db6dd623c6
1 changed files with 3 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ static FAR const char *g_catname[] =
|
|||
static sem_t g_sem = SEM_INITIALIZER(1);
|
||||
static FAR struct mofile_s *g_mofile;
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
static FAR char g_domain[NAME_MAX];
|
||||
#endif
|
||||
|
||||
|
|
@ -88,12 +88,12 @@ static FAR char *gettextdomain(void)
|
|||
{
|
||||
FAR char *domain;
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
domain = g_domain;
|
||||
#else
|
||||
FAR struct task_info_s *info;
|
||||
|
||||
info = task_get_info();
|
||||
domain = info->ta_domain;
|
||||
#else
|
||||
domain = g_domain;
|
||||
#endif
|
||||
|
||||
return domain;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue