aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h10
-rw-r--r--libbb/lineedit.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 01cdb1bdc..67e7bf7b9 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1998,11 +1998,11 @@ enum {
1998 FOR_SHELL = DO_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION | LI_INTERRUPTIBLE, 1998 FOR_SHELL = DO_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION | LI_INTERRUPTIBLE,
1999}; 1999};
2000line_input_t *new_line_input_t(int flags) FAST_FUNC; 2000line_input_t *new_line_input_t(int flags) FAST_FUNC;
2001#if ENABLE_FEATURE_EDITING_SAVEHISTORY 2001# if ENABLE_FEATURE_EDITING_SAVEHISTORY
2002void free_line_input_t(line_input_t *n) FAST_FUNC; 2002void free_line_input_t(line_input_t *n) FAST_FUNC;
2003#else 2003# else
2004# define free_line_input_t(n) free(n) 2004# define free_line_input_t(n) free(n)
2005#endif 2005# endif
2006/* 2006/*
2007 * maxsize must be >= 2. 2007 * maxsize must be >= 2.
2008 * Returns: 2008 * Returns:
@@ -2013,7 +2013,7 @@ void free_line_input_t(line_input_t *n) FAST_FUNC;
2013int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize) FAST_FUNC; 2013int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize) FAST_FUNC;
2014void show_history(const line_input_t *st) FAST_FUNC; 2014void show_history(const line_input_t *st) FAST_FUNC;
2015# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT 2015# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
2016void save_history(line_input_t *st); 2016void save_history(line_input_t *st) FAST_FUNC;
2017# endif 2017# endif
2018#else 2018#else
2019#define MAX_HISTORY 0 2019#define MAX_HISTORY 0
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 543a3f11c..314fedf5c 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1555,7 +1555,7 @@ static void load_history(line_input_t *st_parm)
1555} 1555}
1556 1556
1557# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT 1557# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
1558void save_history(line_input_t *st) 1558void FAST_FUNC save_history(line_input_t *st)
1559{ 1559{
1560 FILE *fp; 1560 FILE *fp;
1561 1561