configure: Fix warnings in VDE library probe
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 18 Jul 2012 14:10:25 +0000 (15:10 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 31 Jul 2012 20:05:54 +0000 (20:05 +0000)
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>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index b29cdd3..d19e645 100755 (executable)
--- a/configure
+++ b/configure
@@ -1822,7 +1822,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