summaryrefslogtreecommitdiffstats
path: root/cpukit/telnetd/telnetd.c
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijay@rtems.org>2021-04-13 12:45:56 -0600
committerVijay Kumar Banerjee <vijay@rtems.org>2021-05-20 17:55:33 -0600
commit71521ff21f76eb9eeff10ad008c31010d851ec64 (patch)
tree9dc9e6fbb711666d2568044103b5dd5435bc8a4d /cpukit/telnetd/telnetd.c
parenttestsuites: Remove telnetd01 (diff)
downloadrtems-71521ff21f76eb9eeff10ad008c31010d851ec64.tar.bz2
telnetd.c: Remove RTEMS_NETWORKING check
Set the priority manually to make telnetd compatible with the
Diffstat (limited to 'cpukit/telnetd/telnetd.c')
-rw-r--r--cpukit/telnetd/telnetd.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c
index b8adec297a..7dad2f2f92 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -58,10 +58,6 @@
#include <rtems/thread.h>
#include <rtems/userenv.h>
-#ifdef RTEMS_NETWORKING
-#include <rtems/rtems_bsdnet.h>
-#endif
-
#define TELNETD_EVENT_SUCCESS RTEMS_EVENT_0
#define TELNETD_EVENT_ERROR RTEMS_EVENT_1
@@ -400,12 +396,7 @@ rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table* config)
ctx->server_socket = -1;
LIST_INIT(&ctx->free_sessions);
- /* Check priority */
-#ifdef RTEMS_NETWORKING
- if (ctx->config.priority == 0) {
- ctx->config.priority = rtems_bsdnet_config.network_task_priority;
- }
-#endif
+ /* Set priority */
if (ctx->config.priority == 0) {
ctx->config.priority = 100;
}