summaryrefslogtreecommitdiffstats
path: root/cpukit/telnetd/telnetd.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-10-25 14:19:45 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-10-25 14:19:45 +0000
commit7906167926e8dc3c312191c19d9bbae5d56b82ce (patch)
treedeb1263f0368855c727556d2502e7d8c7f4f984d /cpukit/telnetd/telnetd.c
parentaf0283385cb9108f00f94790522cf0aba8b1069d (diff)
downloadrtems-7906167926e8dc3c312191c19d9bbae5d56b82ce.tar.bz2
2005-10-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* telnetd/icmds.c: Rename register_icmds to _rtems_telnet_register_icmds. Make main_* functions static. * telnetd/pty.c: Make many functions static. Rename rtems_telnetd_maximum_ptys to rtems_pty_maximum_ptys. * telnetd/pty.h: Reflect changes above. Rename get_pty to rtems_pty_get. New header guards. * telnetd/telnetd.c: Reflect changes above. * telnetd/telnetd.h: New header guards.
Diffstat (limited to 'cpukit/telnetd/telnetd.c')
-rw-r--r--cpukit/telnetd/telnetd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c
index 4673cef3a4..ce5e331976 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -34,6 +34,10 @@
#include <stdlib.h>
#include <string.h> /* memset */
#include <stdio.h>
+
+/* FIXME: This should not be here */
+extern void _rtems_telnetd_register_icmds(void);
+
/***********************************************************/
rtems_id telnetd_task_id =0;
uint32_t telnetd_stack_size =16384;
@@ -71,7 +75,7 @@ rtems_task rtems_task_telnetd(rtems_task_argument task_argument) {
perror("telnetd:accept");
break;
};
- if ((devname = get_pty(acp_socket)) ) {
+ if ((devname = rtems_pty_get(acp_socket)) ) {
shell_init(&devname[5],
telnetd_stack_size,
telnetd_task_priority,
@@ -85,10 +89,9 @@ rtems_task rtems_task_telnetd(rtems_task_argument task_argument) {
}
/***********************************************************/
int rtems_telnetd_initialize(void) {
- void register_icmds(void);
rtems_status_code sc;
- register_icmds(); /* stats for tcp/ip */
+ _rtems_telnetd_register_icmds(); /* stats for tcp/ip */
if (telnetd_task_id ) return RTEMS_RESOURCE_IN_USE;
if (telnetd_stack_size<=0 ) telnetd_stack_size =16384;