diff mbox

[08/11] configure: Fix warnings in VDE library probe

Message ID 1342620628-12751-9-git-send-email-peter.maydell@linaro.org
State Accepted
Commit fea08e0803f9cf2fc888c5b9fc0fd9b93a2272e7
Headers show

Commit Message

Peter Maydell July 18, 2012, 2:10 p.m. UTC
Fix compile warnings in the VDE library probe ("passing argument 1 of
'vde_open_real' discards 'const' qualifier from pointer target type",
ditto argument 2).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 configure |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/configure b/configure
index 784325a..9c2a84d 100755
--- a/configure
+++ b/configure
@@ -1820,7 +1820,8 @@  if test "$vde" != "no" ; then
 int main(void)
 {
     struct vde_open_args a = {0, 0, 0};
-    vde_open("", "", &a);
+    char s[] = "";
+    vde_open(s, s, &a);
     return 0;
 }
 EOF