Răsfoiți Sursa

* Patch by Carl Riechers, 17 Mar 2004:
Ignore '\0' characters in console input for use with telnet and
telco pads.

* Patch by Leon Kukovec, 17 Mar 2004:
typo fix for strswab prototype #ifdef

wdenk 21 ani în urmă
părinte
comite
27aa818670
4 a modificat fișierele cu 15 adăugiri și 1 ștergeri
  1. 7 0
      CHANGELOG
  2. 4 0
      CREDITS
  3. 3 0
      common/main.c
  4. 1 1
      include/linux/string.h

+ 7 - 0
CHANGELOG

@@ -2,6 +2,13 @@
 Changes for U-Boot 1.0.2:
 ======================================================================
 
+* Patch by Carl Riechers, 17 Mar 2004:
+  Ignore '\0' characters in console input for use with telnet and
+  telco pads.
+
+* Patch by Leon Kukovec, 17 Mar 2004:
+  typo fix for strswab prototype #ifdef
+
 * Patches by Thomas Viehweger, 16 Mar 2004:
   - show PCI clock frequency on MPC8260 systems
   - add FCC_PSMR_RMII flag for HiP7 processors

+ 4 - 0
CREDITS

@@ -252,6 +252,10 @@ E: rof@sysgo.de
 D: Initial support for SSV-DNP1110, SMC91111 driver
 W: www.elinos.com
 
+N: Tolunay Orkun
+E: torkun@nextio.com
+D: Support for Cogent CSB272 board
+
 N: Keith Outwater
 E: keith_outwater@mvis.com
 D: Support for generic/custom MPC860T boards (GEN860T, GEN860T_SC)

+ 3 - 0
common/main.c

@@ -574,6 +574,9 @@ int readline (const char *const prompt)
 			puts ("\r\n");
 			return (p - console_buffer);
 
+		case '\0':				/* nul			*/
+			continue;
+
 		case 0x03:				/* ^C - break		*/
 			console_buffer[0] = '\0';	/* discard input */
 			return (-1);

+ 1 - 1
include/linux/string.h

@@ -59,7 +59,7 @@ extern __kernel_size_t strnlen(const char *,__kernel_size_t);
 #ifndef __HAVE_ARCH_STRDUP
 extern char * strdup(const char *);
 #endif
-#ifdef __HAVE_ARCH_STRSWAB
+#ifndef __HAVE_ARCH_STRSWAB
 extern char * strswab(const char *);
 #endif