summaryrefslogtreecommitdiffstats
path: root/src/include/readline
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/include/readline
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/include/readline')
-rw-r--r--src/include/readline/readline.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/readline/readline.h b/src/include/readline/readline.h
index 8b159975..0449a3f9 100644
--- a/src/include/readline/readline.h
+++ b/src/include/readline/readline.h
@@ -50,9 +50,8 @@ struct readline_history {
};
extern void history_free ( struct readline_history *history );
-extern char * __malloc readline_history ( const char *prompt,
- const char *prefill,
- struct readline_history *history );
+extern int readline_history ( const char *prompt, const char *prefill,
+ struct readline_history *history, char **line );
extern char * __malloc readline ( const char *prompt );
#endif /* _READLINE_H */