diff options
Diffstat (limited to 'cpukit/telnetd/telnetd.c')
-rw-r--r-- | cpukit/telnetd/telnetd.c | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c index b8adec297a..5d1604e7d9 100644 --- a/cpukit/telnetd/telnetd.c +++ b/cpukit/telnetd/telnetd.c @@ -1,12 +1,7 @@ -/***********************************************************/ -/* - * - * The telnet DAEMON - * - * Author: 17,may 2001 - * - * WORK: fernando.ruiz@ctv.es - * HOME: correo@fernando-ruiz.com +/** + * @file + * + * @brief The telnet DAEMON * * After start the net you can start this daemon. * It uses the previously inited pseudo-terminales (pty.c) @@ -17,19 +12,17 @@ * this daemon interactively. (Login in /dev/console of course) * * Sorry but OOB is not still implemented. (This is the first version) + */ + +/* + * Copyright (c) 2001 Fernando Ruiz Casas <fruizcasas@gmail.com> * * Till Straumann <strauman@slac.stanford.edu> * - made the 'shell' interface more generic, i.e. it is now * possible to have 'telnetd' run an arbitrary 'shell' * program. * - * Copyright (c) 2009, 2018 embedded brains GmbH and others. - * - * embedded brains GmbH - * Dornierstr. 4 - * D-82178 Puchheim - * Germany - * <rtems@embedded-brains.de> + * Copyright (C) 2009, 2018 embedded brains GmbH & Co. KG * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at @@ -58,10 +51,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 +389,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; } |