From 2c011d77ae0147b8cc68bc4f3c577ebf55b83f16 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 24 Oct 2012 23:21:49 -0700 Subject: [readline] Allow readline_history() to return a meaningful status Signed-off-by: Michael Brown --- src/include/readline/readline.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/include/readline') 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 */ -- cgit v1.2.3-55-g7522