From: Moshe Levi Date: Sat, 15 Aug 2015 07:59:41 +0000 (+0300) Subject: Remove static keyword from vshReadline when readline does not exist X-Git-Tag: v1.2.19-rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0181975689833b2269c032de83ba331b3b0326c1;p=thirdparty%2Flibvirt.git Remove static keyword from vshReadline when readline does not exist This patch removes the static keyword from the vshReadline which was introduced in commit 834c5720e4434f0bcc807bb1cf20855af63e24a3. With readline the vshReadline function is not static but when compiling without readline it was defined as static which caused compilation error. --- diff --git a/tools/vsh.c b/tools/vsh.c index 03ff859e4e..1a5b6e8efe 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2655,7 +2655,7 @@ vshReadlineDeinit(vshControl *ctl ATTRIBUTE_UNUSED) /* empty */ } -static char * +char * vshReadline(vshControl *ctl, const char *prompt) { char line[1024];