From 4fb62d981c84e7e34af45fa05401594880b7c73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 28 Oct 2003 18:05:07 +0000 Subject: [PATCH] Fixed warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5191 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/drivers/arch/x86/console/console.c | 11 ++--------- src/kernel/drivers/fb_console/fb_console.c | 8 -------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/kernel/drivers/arch/x86/console/console.c b/src/kernel/drivers/arch/x86/console/console.c index eae641e1f9..efbefedf4f 100755 --- a/src/kernel/drivers/arch/x86/console/console.c +++ b/src/kernel/drivers/arch/x86/console/console.c @@ -75,13 +75,13 @@ static void scrup(void) unsigned long i; // move the screen up one - memcpy((void *)origin, (void *)origin+2*COLUMNS, 2*(LINES-1)*COLUMNS); + memcpy((void *)origin, (void *)(origin + 2 * COLUMNS), 2 * (LINES - 1) * COLUMNS); // set the new position to the beginning of the last line pos = origin + (LINES-1)*COLUMNS*2; // clear the bottom line - for(i = pos; i < scr_end; i += 2) { + for (i = pos; i < scr_end; i += 2) { *(unsigned short *)i = 0x0720; } } @@ -163,13 +163,6 @@ static status_t console_freecookie(void * cookie) return 0; } -static status_t console_seek(void * cookie, off_t pos, int st) -{ -// dprintf("console_seek: entry\n"); - - return EPERM; -} - static status_t console_close(void * cookie) { // dprintf("console_close: entry\n"); diff --git a/src/kernel/drivers/fb_console/fb_console.c b/src/kernel/drivers/fb_console/fb_console.c index 78ea256345..3da4df969f 100755 --- a/src/kernel/drivers/fb_console/fb_console.c +++ b/src/kernel/drivers/fb_console/fb_console.c @@ -257,14 +257,6 @@ console_freecookie(void * cookie) } -static status_t console_seek(void * cookie, off_t pos, int st) -{ -// dprintf("console_seek: entry\n"); - - return EPERM; -} - - static status_t console_close(void * cookie) {