From b500bcfeedb162b0381be21bd765c3baca663c25 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 18 Feb 2012 19:51:43 +0100 Subject: [PATCH] * grub-core/kern/emu/console.c: Move to ... * grub-core/term/emu/console.c: ...here. (grub_ncurses_getkey): Fix return value if no key is detected. --- ChangeLog | 6 ++++++ grub-core/Makefile.core.def | 2 +- grub-core/{kern => term}/emu/console.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) rename grub-core/{kern => term}/emu/console.c (99%) diff --git a/ChangeLog b/ChangeLog index 37a1bba3d..b7d679cae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-02-18 Vladimir Serbinenko + + * grub-core/kern/emu/console.c: Move to ... + * grub-core/term/emu/console.c: ...here. + (grub_ncurses_getkey): Fix return value if no key is detected. + 2012-02-12 Vladimir Serbinenko * include/grub/test.h (grub_unit_test_init): Add missing prototype. diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 9d3d208f9..28dc7c192 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@ -207,7 +207,6 @@ kernel = { emu = gnulib/progname.c; emu = gnulib/error.c; emu = kern/emu/cache_s.S; - emu = kern/emu/console.c; emu = kern/emu/hostdisk.c; emu = kern/emu/hostfs.c; emu = kern/emu/main.c; @@ -215,6 +214,7 @@ kernel = { emu = kern/emu/mm.c; emu = kern/emu/time.c; emu = kern/emu/cache.c; + emu = term/emu/console.c; videoinkernel = term/gfxterm.c; videoinkernel = font/font.c; diff --git a/grub-core/kern/emu/console.c b/grub-core/term/emu/console.c similarity index 99% rename from grub-core/kern/emu/console.c rename to grub-core/term/emu/console.c index 7fd1fc0c9..55e3a6b7f 100644 --- a/grub-core/kern/emu/console.c +++ b/grub-core/term/emu/console.c @@ -116,7 +116,7 @@ grub_ncurses_getkey (struct grub_term_input *term __attribute__ ((unused))) switch (c) { case ERR: - return -1; + return GRUB_TERM_NO_KEY; case KEY_LEFT: c = GRUB_TERM_KEY_LEFT; break;