From 098a0c2a7ba3e16d6a8c01a197ce0d44e62b8aef Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 23 May 2018 17:26:01 +0200 Subject: linenoise: Use inline instead of static --- sinksh/repl/linenoise.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sinksh/repl/linenoise.hpp b/sinksh/repl/linenoise.hpp index fa7aa7f..251da7f 100644 --- a/sinksh/repl/linenoise.hpp +++ b/sinksh/repl/linenoise.hpp @@ -1827,7 +1827,7 @@ inline int completeLine(struct linenoiseState *ls, char *cbuf, int *c) { } /* Register a callback function to be called for tab-completion. */ -static void SetCompletionCallback(CompletionCallback fn) { +inline void SetCompletionCallback(CompletionCallback fn) { completionCallback = fn; } -- cgit v1.2.3