diff options
author | Michael Brown | 2012-10-25 08:21:49 +0200 |
---|---|---|
committer | Michael Brown | 2012-10-25 08:24:43 +0200 |
commit | 2c011d77ae0147b8cc68bc4f3c577ebf55b83f16 (patch) | |
tree | 4eaa0afca5fcaa5963799408d29eb60b456fc512 /src/include/readline | |
parent | [netdevice] Clear network device setting before unregistering (diff) | |
download | ipxe-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.h | 5 |
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 */ |