[rtems-libbsd commit] telnet: Use rtems_shell_dup_current_env()
Sebastian Huber
sebh at rtems.org
Thu Aug 6 11:21:42 UTC 2020
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: d964a6703c705cc92fd053bcefc08bb3b6baa0e2
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=d964a6703c705cc92fd053bcefc08bb3b6baa0e2
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Aug 6 13:21:00 2020 +0200
telnet: Use rtems_shell_dup_current_env()
Update #3859.
---
testsuite/media01/test_main.c | 2 +-
testsuite/netshell01/test_main.c | 2 +-
testsuite/pf02/test_main.c | 2 +-
testsuite/ppp01/test_main.c | 2 +-
testsuite/telnetd01/test_main.c | 2 +-
testsuite/zerocopy01/test_main.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/testsuite/media01/test_main.c b/testsuite/media01/test_main.c
index 91e0dd5..09d0b9e 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 81941d0..b967cb8 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 9207316..5941ea5 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 078e96e..d4baf5d 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 0091684..73d19c4 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 3e7b7b7..1be546e 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";
More information about the vc
mailing list