]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Remove static keyword from vshReadline when readline does not exist
authorMoshe Levi <moshele@mellanox.com>
Sat, 15 Aug 2015 07:59:41 +0000 (10:59 +0300)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 15 Aug 2015 15:14:12 +0000 (17:14 +0200)
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.

tools/vsh.c

index 03ff859e4eee21effe2de41f049acc648de6ab61..1a5b6e8efecf9a0023a4d763793a4e7d6e59dfb6 100644 (file)
@@ -2655,7 +2655,7 @@ vshReadlineDeinit(vshControl *ctl ATTRIBUTE_UNUSED)
     /* empty */
 }
 
-static char *
+char *
 vshReadline(vshControl *ctl, const char *prompt)
 {
     char line[1024];