From 80f77327f3fbd95710cb44e308b3a3fe062ce220 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 2 Dec 2009 09:48:25 +0000 Subject: Whitespace removal. --- cpukit/telnetd/des.c | 10 +++++----- cpukit/telnetd/genpw.c | 18 +++++++++--------- cpukit/telnetd/icmds.c | 14 +++++++------- cpukit/telnetd/pty.c | 34 +++++++++++++++++----------------- cpukit/telnetd/pty.h | 4 ++-- 5 files changed, 40 insertions(+), 40 deletions(-) (limited to 'cpukit/telnetd') 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 #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 #include -/* +/* * Authorship * ---------- * This software was created by * Till Straumann , 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;ndxiac_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=0) + * If no slot available (socket>=0) * then the socket argument is closed */ char * rtems_pty_get(int socket); -- cgit v1.2.3