1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

common: add possibility for readline_into_buffer timeout

add possibility to add a timeout when reading a line
into a buffer.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Heiko Schocher
2012-01-16 21:13:05 +00:00
committed by Albert ARIBAUD
parent 2627c8c0a1
commit 9c3483113d
4 changed files with 21 additions and 7 deletions

View File

@@ -222,7 +222,8 @@ static inline int menu_interactive_choice(struct menu *m, void **choice)
menu_display(m);
readret = readline_into_buffer("Enter choice: ", cbuf);
readret = readline_into_buffer("Enter choice: ", cbuf,
m->timeout);
if (readret >= 0) {
choice_item = menu_item_by_key(m, cbuf);