mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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 sem_t g_sem = SEM_INITIALIZER(1);
|
||||||
static FAR struct mofile_s *g_mofile;
|
static FAR struct mofile_s *g_mofile;
|
||||||
|
|
||||||
#ifndef CONFIG_BUILD_KERNEL
|
#ifdef CONFIG_BUILD_KERNEL
|
||||||
static FAR char g_domain[NAME_MAX];
|
static FAR char g_domain[NAME_MAX];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -88,12 +88,12 @@ static FAR char *gettextdomain(void)
|
|||||||
{
|
{
|
||||||
FAR char *domain;
|
FAR char *domain;
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
#ifdef CONFIG_BUILD_KERNEL
|
||||||
|
domain = g_domain;
|
||||||
|
#else
|
||||||
FAR struct task_info_s *info;
|
FAR struct task_info_s *info;
|
||||||
|
|
||||||
info = task_get_info();
|
info = task_get_info();
|
||||||
domain = info->ta_domain;
|
domain = info->ta_domain;
|
||||||
#else
|
|
||||||
domain = g_domain;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return domain;
|
return domain;
|
||||||
|
|||||||
Reference in New Issue
Block a user