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

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. --- 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

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@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (2)
-
Martin Kletzander
-
Moshe Levi