mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
libc/gettextdomain: Fix the typo error
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user