summaryrefslogtreecommitdiffstats
path: root/cpukit/telnetd
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-12-02 09:48:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-12-02 09:48:25 +0000
commit80f77327f3fbd95710cb44e308b3a3fe062ce220 (patch)
treeeff3aea12cf2b570bedcf2570452f45854ced711 /cpukit/telnetd
parentRegenerate. (diff)
downloadrtems-80f77327f3fbd95710cb44e308b3a3fe062ce220.tar.bz2
Whitespace removal.
Diffstat (limited to 'cpukit/telnetd')
-rw-r--r--cpukit/telnetd/des.c10
-rw-r--r--cpukit/telnetd/genpw.c18
-rw-r--r--cpukit/telnetd/icmds.c14
-rw-r--r--cpukit/telnetd/pty.c34
-rw-r--r--cpukit/telnetd/pty.h4
5 files changed, 40 insertions, 40 deletions
diff --git a/cpukit/telnetd/des.c b/cpukit/telnetd/des.c
index aedeb81c04..faf3310a94 100644
--- a/cpukit/telnetd/des.c
+++ b/cpukit/telnetd/des.c
@@ -71,7 +71,7 @@
#include <stdlib.h>
#define REENTRANT
-/* Re-entrantify me -- all this junk needs to be in
+/* Re-entrantify me -- all this junk needs to be in
* struct crypt_data to make this really reentrant... */
/* TS; not really - only the stuff in Des_Context */
@@ -127,8 +127,8 @@ static struct Des_Context single;
#define old_rawkey0 des_ctx->old_rawkey0
#define old_rawkey1 des_ctx->old_rawkey1
-/* Static stuff that stays resident and doesn't change after
- * being initialized, and therefore doesn't need to be made
+/* Static stuff that stays resident and doesn't change after
+ * being initialized, and therefore doesn't need to be made
* reentrant. */
static u_char init_perm[64], final_perm[64];
static u_char m_sbox[4][4096];
@@ -241,7 +241,7 @@ static const u_char bits8[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01
static const u_int32_t *bits28, *bits24;
-static int
+static int
ascii_to_bin(char ch)
{
if (ch > 'z')
@@ -773,7 +773,7 @@ __des_crypt_r(const char *key, const char *setting, char *output, int sz)
*/
output[9] = '\0';
p = (u_char *)output + strlen(output);
- } else
+ } else
#endif
{
/*
diff --git a/cpukit/telnetd/genpw.c b/cpukit/telnetd/genpw.c
index 1ce3e41206..08c60d626f 100644
--- a/cpukit/telnetd/genpw.c
+++ b/cpukit/telnetd/genpw.c
@@ -2,19 +2,19 @@
#include <stdio.h>
#include <unistd.h>
-/*
+/*
* Authorship
* ----------
* This software was created by
* Till Straumann <strauman@slac.stanford.edu>, 2003-2007
* Stanford Linear Accelerator Center, Stanford University.
- *
+ *
* Acknowledgement of sponsorship
* ------------------------------
* This software was produced by
* the Stanford Linear Accelerator Center, Stanford University,
* under Contract DE-AC03-76SFO0515 with the Department of Energy.
- *
+ *
* Government disclaimer of liability
* ----------------------------------
* Neither the United States nor the United States Department of Energy,
@@ -23,18 +23,18 @@
* completeness, or usefulness of any data, apparatus, product, or process
* disclosed, or represents that its use would not infringe privately owned
* rights.
- *
+ *
* Stanford disclaimer of liability
* --------------------------------
* Stanford University makes no representations or warranties, express or
* implied, nor assumes any liability for the use of this software.
- *
+ *
* Stanford disclaimer of copyright
* --------------------------------
* Stanford University, owner of the copyright, hereby disclaims its
* copyright and all other rights in this software. Hence, anyone may
- * freely use it for any purpose without restriction.
- *
+ * freely use it for any purpose without restriction.
+ *
* Maintenance of notices
* ----------------------
* In the interest of clarity regarding the origin and status of this
@@ -43,9 +43,9 @@
* or distributed by the recipient and are to be affixed to any copy of
* software made or distributed by the recipient that contains a copy or
* derivative of this software.
- *
+ *
* ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
- */
+ */
static void
usage(char *nm)
{
diff --git a/cpukit/telnetd/icmds.c b/cpukit/telnetd/icmds.c
index 2963c376d0..400fafc539 100644
--- a/cpukit/telnetd/icmds.c
+++ b/cpukit/telnetd/icmds.c
@@ -54,11 +54,11 @@ static int main_udp(int argc,char * argv[]) {
/*+++++++++++++++++++++++++++++++++++++++++++++*/
void _rtems_telnetd_register_icmds(void) {
- rtems_shell_add_cmd("inet" ,"net","inet routes" ,main_inet);
- rtems_shell_add_cmd("mbuf" ,"net","mbuf stats" ,main_mbuf);
- rtems_shell_add_cmd("if" ,"net","if stats" ,main_if );
- rtems_shell_add_cmd("ip" ,"net","ip stats" ,main_ip );
- rtems_shell_add_cmd("icmp" ,"net","icmp stats" ,main_icmp);
- rtems_shell_add_cmd("tcp" ,"net","tcp stats" ,main_tcp );
- rtems_shell_add_cmd("udp" ,"net","udp stats" ,main_udp );
+ rtems_shell_add_cmd("inet" ,"net","inet routes" ,main_inet);
+ rtems_shell_add_cmd("mbuf" ,"net","mbuf stats" ,main_mbuf);
+ rtems_shell_add_cmd("if" ,"net","if stats" ,main_if );
+ rtems_shell_add_cmd("ip" ,"net","ip stats" ,main_ip );
+ rtems_shell_add_cmd("icmp" ,"net","icmp stats" ,main_icmp);
+ rtems_shell_add_cmd("tcp" ,"net","tcp stats" ,main_tcp );
+ rtems_shell_add_cmd("udp" ,"net","udp stats" ,main_udp );
}
diff --git a/cpukit/telnetd/pty.c b/cpukit/telnetd/pty.c
index 63e8187e32..df6a25a2bb 100644
--- a/cpukit/telnetd/pty.c
+++ b/cpukit/telnetd/pty.c
@@ -17,7 +17,7 @@
* is closed. Rather let 'read()' return a 0 count so
* they may cleanup. Some magic hack works around termios
* limitation.
- *
+ *
* $Id$
*/
@@ -77,8 +77,8 @@ struct pty_tt {
int opened;
int socket;
int last_cr;
- unsigned iac_mode;
- unsigned char sb_buf[SB_MAX];
+ unsigned iac_mode;
+ unsigned char sb_buf[SB_MAX];
int sb_ind;
int width;
int height;
@@ -92,7 +92,7 @@ static rtems_device_major_number pty_major;
/* This procedure returns the devname for a pty slot free.
- * If not slot availiable (field socket>=0)
+ * If not slot availiable (field socket>=0)
* then the socket argument is closed
*/
@@ -110,7 +110,7 @@ char * telnet_get_pty(int socket)
if ( !telnet_ptys ) {
return NULL;
}
-
+
for (ndx=0;ndx<rtems_telnetd_maximum_ptys;ndx++) {
if (telnet_ptys[ndx].socket<0) {
@@ -132,9 +132,9 @@ char * telnet_get_pty(int socket)
/*-----------------------------------------------------------*/
/*
* The NVT terminal is negociated in PollRead and PollWrite
- * with every BYTE sendded or received.
- * A litle status machine in the pty_read_byte(int minor)
- *
+ * with every BYTE sendded or received.
+ * A litle status machine in the pty_read_byte(int minor)
+ *
*/
static const char IAC_AYT_RSP[]="\r\nAYT? Yes, RTEMS-SHELL is here\r\n";
static const char IAC_BRK_RSP[]="<*Break*>";
@@ -269,7 +269,7 @@ static int read_pty(int minor)
case IAC_WILL:
if (value==34){
- send_iac(minor,IAC_DONT, 34); /*LINEMODE*/
+ send_iac(minor,IAC_DONT, 34); /*LINEMODE*/
send_iac(minor,IAC_DO , 1); /*ECHO */
} else if (value==31) {
send_iac(minor,IAC_DO , 31); /*NAWS */
@@ -285,7 +285,7 @@ static int read_pty(int minor)
case IAC_DO :
if (value==3) {
send_iac(minor,IAC_WILL, 3); /* GO AHEAD*/
- } else if (value==1) {
+ } else if (value==1) {
/* ECHO */
} else {
send_iac(minor,IAC_WONT,value);
@@ -303,7 +303,7 @@ static int read_pty(int minor)
pty->iac_mode=value;
return -1;
} else {
- result=value;
+ result=value;
if ( 0
#if 0 /* pass CRLF through - they should use termios to handle it */
|| ((value=='\n') && (pty->last_cr))
@@ -327,7 +327,7 @@ static int ptyPollWrite(int minor, const char * buf,int len) ;
static int ptyPollRead(int minor) ;
static const rtems_termios_callbacks * pty_get_termios_handlers(int polled) ;
/*-----------------------------------------------------------*/
-/* Set the 'Hardware' */
+/* Set the 'Hardware' */
/*-----------------------------------------------------------*/
static int
ptySetAttributes(int minor,const struct termios *t) {
@@ -339,7 +339,7 @@ ptySetAttributes(int minor,const struct termios *t) {
return 0;
}
/*-----------------------------------------------------------*/
-static int
+static int
ptyPollInitialize(int major,int minor,void * arg) {
rtems_libio_open_close_args_t * args = (rtems_libio_open_close_args_t*)arg;
struct termios t;
@@ -358,7 +358,7 @@ ptyPollInitialize(int major,int minor,void * arg) {
}
}
/*-----------------------------------------------------------*/
-static int
+static int
ptyShutdown(int major,int minor,void * arg) {
if (minor<rtems_telnetd_maximum_ptys) {
telnet_ptys[minor].opened=FALSE;
@@ -371,7 +371,7 @@ ptyShutdown(int major,int minor,void * arg) {
return 0;
}
/*-----------------------------------------------------------*/
-/* Write Characters into pty device */
+/* Write Characters into pty device */
/*-----------------------------------------------------------*/
static int
ptyPollWrite(int minor, const char * buf,int len) {
@@ -425,7 +425,7 @@ rtems_device_driver my_pty_initialize(
telnet_ptys = malloc( rtems_telnetd_maximum_ptys * sizeof (pty_t) );
- /*
+ /*
* Set up ptys
*/
@@ -510,7 +510,7 @@ rtems_device_driver my_pty_open(
sc = rtems_termios_open(major,minor,arg,pty_get_termios_handlers(FALSE));
return sc;
}
-
+
/*
* Close entry point
*/
diff --git a/cpukit/telnetd/pty.h b/cpukit/telnetd/pty.h
index e786c01627..503fb9444d 100644
--- a/cpukit/telnetd/pty.h
+++ b/cpukit/telnetd/pty.h
@@ -7,7 +7,7 @@
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
+ *
* $Id$
*/
@@ -24,7 +24,7 @@ extern "C" {
extern size_t rtems_pty_maximum_ptys;
/* Return the devname for a free pty slot.
- * If no slot available (socket>=0)
+ * If no slot available (socket>=0)
* then the socket argument is closed
*/
char * rtems_pty_get(int socket);