summaryrefslogtreecommitdiffstats
path: root/src/include
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
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')
-rw-r--r--src/include/ipxe/errfile.h1
-rw-r--r--src/include/readline/readline.h5
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h
index dd63225d5..514e1f8ae 100644
--- a/src/include/ipxe/errfile.h
+++ b/src/include/ipxe/errfile.h
@@ -264,6 +264,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_ocsp ( ERRFILE_OTHER | 0x002f0000 )
#define ERRFILE_nslookup ( ERRFILE_OTHER | 0x00300000 )
#define ERRFILE_efi_snp_hii ( ERRFILE_OTHER | 0x00310000 )
+#define ERRFILE_readline ( ERRFILE_OTHER | 0x00320000 )
/** @} */
diff --git a/src/include/readline/readline.h b/src/include/readline/readline.h
index 8b1599753..0449a3f98 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 */