bc: unbreak FEATURE_CLEAN_UP build
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Dec 2018 10:12:38 +0000 (11:12 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Dec 2018 10:12:38 +0000 (11:12 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/lineedit.c

index df3c2d3c99127b549cee045e12fe9036710f233b..9e097009578d438e467b1f3bc8e569f5b7311813 100644 (file)
@@ -1786,7 +1786,7 @@ enum {
        FOR_SHELL        = DO_HISTORY | TAB_COMPLETION | USERNAME_COMPLETION,
 };
 line_input_t *new_line_input_t(int flags) FAST_FUNC;
-/* So far static: void free_line_input_t(line_input_t *n) FAST_FUNC; */
+void free_line_input_t(line_input_t *n) FAST_FUNC;
 /*
  * maxsize must be >= 2.
  * Returns:
index b1e971f88da7d64f51947141c946a4bf43f9465e..b6fcd7af03bf2ec7ce69f57c04f0d3f566025710 100644 (file)
@@ -1382,7 +1382,7 @@ void FAST_FUNC show_history(const line_input_t *st)
  * than configured MAX_HISTORY lines.
  */
 
-static void free_line_input_t(line_input_t *n)
+void FAST_FUNC free_line_input_t(line_input_t *n)
 {
        int i = n->cnt_history;
        while (i > 0)