From bb581906a68a07074a5b0bc6cb6698fe983ca3ca Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 29 May 2014 15:05:56 +1000 Subject: shell: Add rtems_shell_dup_current_env to get a default env. Remove rtems_current_shell_env as this is dangerous because the env can be NULL if used outside of a valid shell with the POSIX key to an env set up. Clean up the usage of rtems_current_shell_env. --- cpukit/libmisc/shell/shell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libmisc/shell/shell.h') diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h index 76b34c7a5e..726a8eeb4e 100644 --- a/cpukit/libmisc/shell/shell.h +++ b/cpukit/libmisc/shell/shell.h @@ -208,7 +208,7 @@ bool rtems_shell_main_loop( extern const rtems_shell_env_t rtems_global_shell_env; rtems_shell_env_t *rtems_shell_get_current_env(void); -#define rtems_current_shell_env rtems_shell_get_current_env() +void rtems_shell_dup_current_env(rtems_shell_env_t *); /* * The types of file systems we can mount. We have them broken out -- cgit v1.2.3