Patchwork [libpayload] various fixes

login
register
about
Submitter Stefan Reinauer
Date 2009-07-30 17:28:15
Message ID <4A71D82F.5060106@coresystems.de>
Download mbox | patch
Permalink /patch/84/
State Accepted
Headers show

Comments

Stefan Reinauer - 2009-07-30 17:28:15
Attached are two patches
* one checking the return code of various malloc and memalign calls
* another one fixes a bug in the keyboard driver and a bug in the video
driver

Stefan
Peter Stuge - 2009-07-30 17:34:40
Stefan Reinauer wrote:
> Attached are two patches
> * one checking the return code of various malloc and memalign calls
> * another one fixes a bug in the keyboard driver and a bug in the video
> driver

Both are:

Acked-by: Peter Stuge <peter@stuge.se>
Leandro Dorileo - 2009-07-30 17:42:45
Thank you Stefan.

On Thu, Jul 30, 2009 at 1:28 PM, Stefan Reinauer<stepan@coresystems.de> wrote:
> Attached are two patches
> * one checking the return code of various malloc and memalign calls
> * another one fixes a bug in the keyboard driver and a bug in the video
> driver
>
> Stefan
>
> --
> coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
>      Tel.: +49 761 7668825 • Fax: +49 761 7664613
> Email: info@coresystems.de  • http://www.coresystems.de/
> Registergericht: Amtsgericht Freiburg • HRB 7656
> Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
>
>
> --
> coreboot mailing list: coreboot@coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot
>

Regards...

Patch

Index: include/sysinfo.h
===================================================================
--- include/sysinfo.h	(revision 4472)
+++ include/sysinfo.h	(working copy)
@@ -54,7 +54,6 @@ 
 };
 
 extern struct sysinfo_t lib_sysinfo;
-void lib_get_sysinfo(void);
 
 #endif
 
Index: curses/keyboard.c
===================================================================
--- curses/keyboard.c	(revision 4472)
+++ curses/keyboard.c	(working copy)
@@ -179,7 +179,7 @@ 
 			break;
 
 		if (delay > 0) {
-			mdelay(100);
+			mdelay(1);
 			delay--;
 		}
 
@@ -195,15 +195,17 @@ 
 {
 	int delay = -1;
 
-	if (_halfdelay || win->_delay)
-		delay = win->_delay ? 0 : _halfdelay;
+	if (_halfdelay)
+		delay = _halfdelay;
+	else 
+		delay = win->_delay;
 
 	return curses_getchar(delay);
 }
 
 int nodelay(WINDOW *win, NCURSES_BOOL flag)
 {
-	win->_delay = flag ? 1 : 0;
+	win->_delay = flag ? 0 : -1;
 	return 0;
 }
 
Index: drivers/video/video.c
===================================================================
--- drivers/video/video.c	(revision 4472)
+++ drivers/video/video.c	(working copy)
@@ -66,7 +66,7 @@ 
 	if (cursory < 0)
 		cursory = 0;
 
-	if (cursorx > VIDEO_COLS) {
+	if (cursorx >= VIDEO_COLS) {
 		cursorx = 0;
 		cursory++;
 	}