[readline] Add an optional timeout to readline_history()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2021-04-23 12:27:57 +01:00
parent 56f7d44fde
commit b2501dd122
4 changed files with 18 additions and 6 deletions

View File

@@ -241,7 +241,7 @@ static int read_value ( struct named_setting *setting, char **args __unused,
NULL, &setting->setting, &existing );
/* Read new value */
if ( ( rc = readline_history ( NULL, existing, NULL, value ) ) != 0 )
if ( ( rc = readline_history ( NULL, existing, NULL, 0, value ) ) != 0 )
goto err_readline;
err_readline: