changeset 30178:79d654423b9a

Pass proper parameters to dlopen/dlsym/vsscanf to avoid configure test warnings.
author diego
date Mon, 04 Jan 2010 22:28:44 +0000
parents c02b833051a7
children 8527598ceac6
files configure
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jan 04 21:57:13 2010 +0000
+++ b/configure	Mon Jan 04 22:28:44 2010 +0000
@@ -3377,7 +3377,7 @@
 cat > $TMPC << EOF
 #include <stddef.h>
 #include <dlfcn.h>
-int main(void) { dlopen(NULL, 0); dlclose(NULL); dlsym(NULL, NULL); return 0; }
+int main(void) { dlopen("", 0); dlclose(NULL); dlsym(NULL, ""); return 0; }
 EOF
 _dl=no
 for _ld_tmp in "" "-ldl" ; do
@@ -3745,7 +3745,7 @@
 #define _ISOC99_SOURCE
 #include <stdarg.h>
 #include <stdio.h>
-int main(void) { va_list ap; vsscanf(0, 0, ap); return 0; }
+int main(void) { va_list ap; vsscanf("foo", "bar", ap); return 0; }
 EOF
 _vsscanf=no
 cc_check && _vsscanf=yes