[libvirt] [PATCH] Remove static from vshReadline when readline not exist

Martin Kletzander mkletzan at redhat.com
Sat Aug 15 15:19:06 UTC 2015


On Sat, Aug 15, 2015 at 10:59:41AM +0300, Moshe Levi wrote:
>This patch remove the static from the vshReadline which introduce
>in this commit 834c5720e4434f0bcc807bb1cf20855af63e24a3. In with readline
>function vshReadline is not static but without readline it defined static
>which cause compilation error.
>---

ACK, I reworded the commit message a bit and pushed.

> tools/vsh.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
>diff --git a/tools/vsh.c b/tools/vsh.c
>index 03ff859..1a5b6e8 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];
>--
>1.7.1
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150815/72792b2e/attachment-0001.sig>


More information about the libvir-list mailing list