From 609e10f802f7b45bf6fb0dd7313ff03c6801834b Mon Sep 17 00:00:00 2001 From: sunghan Date: Fri, 7 Apr 2017 15:06:35 +0900 Subject: [PATCH] fix typo for environ CONFIG_DISABLE_ENIVRON is a typo of CONFIG_DISABLE_ENVIRON. --- apps/shell/tash_command.c | 8 ++++---- os/include/cxx/cstdlib | 2 +- os/include/stdlib.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/shell/tash_command.c b/apps/shell/tash_command.c index bf7dc9b..08c92cb 100644 --- a/apps/shell/tash_command.c +++ b/apps/shell/tash_command.c @@ -22,7 +22,7 @@ #include #include #include -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON #include #endif #include @@ -51,7 +51,7 @@ #define TASH_CMDTASK_PRIORITY (SCHED_PRIORITY_DEFAULT) #endif #define TASH_CMDS_PER_LINE (4) -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON #define TASH_ASYNC_CMD_PRI_STR "CMD_PRI" #define TASH_ASYNC_CMD_STACK_STR "CMD_STACK" #endif @@ -155,7 +155,7 @@ static int tash_help(int argc, char **args) } } printf("\n"); -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON printf("\nIf you want to run an ASYNC command with specific priority and stacksize\n"); printf("use \"setenv %s\" or \"%s\"\n", TASH_ASYNC_CMD_PRI_STR, TASH_ASYNC_CMD_STACK_STR); #endif @@ -180,7 +180,7 @@ static int tash_launch_cmdtask(TASH_CMD_CALLBACK cb, int argc, char **args) int ret = 0; int pri = TASH_CMDTASK_PRIORITY; long stack_size = TASH_CMDTASK_STACKSIZE; -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON char *env_pri; char *env_stack; int is_setenv = false; diff --git a/os/include/cxx/cstdlib b/os/include/cxx/cstdlib index 125c7e9..067188b 100644 --- a/os/include/cxx/cstdlib +++ b/os/include/cxx/cstdlib @@ -73,7 +73,7 @@ namespace std // Environment variable support -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON using ::get_environ_ptr; using ::getenv; using ::putenv; diff --git a/os/include/stdlib.h b/os/include/stdlib.h index 1deb660..b8bc34f 100644 --- a/os/include/stdlib.h +++ b/os/include/stdlib.h @@ -101,7 +101,7 @@ * can be used in its place. */ -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON #define environ get_environ_ptr() #endif @@ -184,7 +184,7 @@ int rand(void); /* Environment variable support */ -#ifndef CONFIG_DISABLE_ENIVRON +#ifndef CONFIG_DISABLE_ENVIRON /** * @ingroup STDLIB_LIBC * @brief Return a pointer to the thread specific environ variable -- 2.7.4