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) {