diff options
author | Chris Johns <chrisj@rtems.org> | 2014-05-29 15:05:56 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-06-04 22:32:55 +1000 |
commit | bb581906a68a07074a5b0bc6cb6698fe983ca3ca (patch) | |
tree | 21cdfe7a360964039699f6d0a26414906d0f0af5 /cpukit/libmisc/shell/shell.h | |
parent | score: Rename _Scheduler_Update() (diff) | |
download | rtems-bb581906a68a07074a5b0bc6cb6698fe983ca3ca.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/shell/shell.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |