summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-03-23 22:37:33 +0000
committerwdenk <wdenk>2004-03-23 22:37:33 +0000
commit27aa818670ad6776546ee3c1ad339b68866368ef (patch)
treead47a46c25295a84f754f15483f5505cc5ed3b43
parent4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d (diff)
downloadbarebox-27aa818670ad6776546ee3c1ad339b68866368ef.tar.gz
barebox-27aa818670ad6776546ee3c1ad339b68866368ef.tar.xz
* 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
-rw-r--r--CHANGELOG7
-rw-r--r--CREDITS4
-rw-r--r--common/main.c3
-rw-r--r--include/linux/string.h2
4 files changed, 15 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 1e7ea2a29a..328f78c858 100644
--- a/CHANGELOG
+++ b/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
diff --git a/CREDITS b/CREDITS
index b0bd8bca8d..5a06bb2c14 100644
--- a/CREDITS
+++ b/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)
diff --git a/common/main.c b/common/main.c
index 817c1b461d..156e4bc3d8 100644
--- a/common/main.c
+++ b/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);
diff --git a/include/linux/string.h b/include/linux/string.h
index 403ae982be..1a45fd3215 100644
--- a/include/linux/string.h
+++ b/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