summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-06 13:21:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-06 13:22:42 +0200
commitb1e67a2bdc575f7f6e0af4922d7adb91545827ca (patch)
tree2fb3ca1756610caaa09990eb797d193ab7367b3e
parent3e4ebf3bf3a17328ec18af217d441aab1b9baf5a (diff)
downloadrtems-libbsd-master.tar.bz2
telnet: Use rtems_shell_dup_current_env()HEADmaster
Update #3859.
-rw-r--r--testsuite/media01/test_main.c2
-rw-r--r--testsuite/netshell01/test_main.c2
-rw-r--r--testsuite/pf02/test_main.c2
-rw-r--r--testsuite/ppp01/test_main.c2
-rw-r--r--testsuite/telnetd01/test_main.c2
-rw-r--r--testsuite/zerocopy01/test_main.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/media01/test_main.c b/testsuite/media01/test_main.c
index 91e0dd5a..09d0b9e2 100644
--- a/testsuite/media01/test_main.c
+++ b/testsuite/media01/test_main.c
@@ -123,7 +123,7 @@ telnet_shell(char *name, void *arg)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
env.devname = name;
env.taskname = "TLNT";
diff --git a/testsuite/netshell01/test_main.c b/testsuite/netshell01/test_main.c
index 81941d0b..b967cb87 100644
--- a/testsuite/netshell01/test_main.c
+++ b/testsuite/netshell01/test_main.c
@@ -162,7 +162,7 @@ test_main(void)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
rtems_shell_main_loop(&env);
exit(0);
diff --git a/testsuite/pf02/test_main.c b/testsuite/pf02/test_main.c
index 92073165..5941ea5a 100644
--- a/testsuite/pf02/test_main.c
+++ b/testsuite/pf02/test_main.c
@@ -132,7 +132,7 @@ telnet_shell(char *name, void *arg)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
env.devname = name;
env.taskname = "TLNT";
diff --git a/testsuite/ppp01/test_main.c b/testsuite/ppp01/test_main.c
index 078e96e2..d4baf5db 100644
--- a/testsuite/ppp01/test_main.c
+++ b/testsuite/ppp01/test_main.c
@@ -211,7 +211,7 @@ telnet_shell(char *name, void *arg)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
env.devname = name;
env.taskname = "TLNT";
diff --git a/testsuite/telnetd01/test_main.c b/testsuite/telnetd01/test_main.c
index 00916843..73d19c4e 100644
--- a/testsuite/telnetd01/test_main.c
+++ b/testsuite/telnetd01/test_main.c
@@ -50,7 +50,7 @@ telnet_shell(char *name, void *arg)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
env.devname = name;
env.taskname = "TLNT";
diff --git a/testsuite/zerocopy01/test_main.c b/testsuite/zerocopy01/test_main.c
index 3e7b7b7b..1be546e4 100644
--- a/testsuite/zerocopy01/test_main.c
+++ b/testsuite/zerocopy01/test_main.c
@@ -190,7 +190,7 @@ telnet_shell(char *name, void *arg)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
env.devname = name;
env.taskname = "TLNT";