summaryrefslogtreecommitdiffstats
path: root/src/hci/shell.c
diff options
context:
space:
mode:
authorMichael Brown2012-10-25 08:21:49 +0200
committerMichael Brown2012-10-25 08:24:43 +0200
commit2c011d77ae0147b8cc68bc4f3c577ebf55b83f16 (patch)
tree4eaa0afca5fcaa5963799408d29eb60b456fc512 /src/hci/shell.c
parent[netdevice] Clear network device setting before unregistering (diff)
downloadipxe-2c011d77ae0147b8cc68bc4f3c577ebf55b83f16.tar.gz
ipxe-2c011d77ae0147b8cc68bc4f3c577ebf55b83f16.tar.xz
ipxe-2c011d77ae0147b8cc68bc4f3c577ebf55b83f16.zip
[readline] Allow readline_history() to return a meaningful status
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/shell.c')
-rw-r--r--src/hci/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/shell.c b/src/hci/shell.c
index f4cf9bc8..b6208676 100644
--- a/src/hci/shell.c
+++ b/src/hci/shell.c
@@ -86,7 +86,7 @@ int shell ( void ) {
/* Read and execute commands */
do {
- line = readline_history ( shell_prompt, NULL, &history );
+ readline_history ( shell_prompt, NULL, &history, &line );
if ( line ) {
rc = system ( line );
free ( line );