summaryrefslogtreecommitdiff
path: root/common/cmd_nvedit.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2012-01-16 21:13:05 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-02-12 10:11:23 +0100
commit9c3483113de1204118a1b252bf4c81b899dd12b4 (patch)
tree5f7af1ceb46bd36f92f63076081174db1d84bb96 /common/cmd_nvedit.c
parent2627c8c0a1bc64099cf6b6e2d978d666f88ef08d (diff)
downloadu-boot-imx-9c3483113de1204118a1b252bf4c81b899dd12b4.zip
u-boot-imx-9c3483113de1204118a1b252bf4c81b899dd12b4.tar.gz
u-boot-imx-9c3483113de1204118a1b252bf4c81b899dd12b4.tar.bz2
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>
Diffstat (limited to 'common/cmd_nvedit.c')
-rw-r--r--common/cmd_nvedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 63afc82..20080dc 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -502,7 +502,7 @@ int do_env_edit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
else
buffer[0] = '\0';
- readline_into_buffer("edit: ", buffer);
+ readline_into_buffer("edit: ", buffer, 0);
return setenv(argv[1], buffer);
}