From: Gary V. Vaughan Date: Sat, 26 Oct 2013 00:33:14 +0000 (+1300) Subject: tests: use K&R main() syntax for old-ltdl-iface.at. X-Git-Tag: v2.4.2.418~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e693c9ac96a19dc5ca01ec3520ab18d1d3342e95;p=thirdparty%2Flibtool.git tests: use K&R main() syntax for old-ltdl-iface.at. At least Mac OS 10.8.5 clang chokes on the previous 'const void *argv[]' parameter, but since we don't use it anyway, keep to the theme of old api support and use K&R syntax. * tests/old-ltdl-iface.at (old.c): Use 'main ()' instead of unportable 'int main (int argc, const void *argv[])'. Signed-off-by: Gary V. Vaughan --- diff --git a/tests/old-ltdl-iface.at b/tests/old-ltdl-iface.at index 9c9d5faf9..58ca09f6c 100644 --- a/tests/old-ltdl-iface.at +++ b/tests/old-ltdl-iface.at @@ -67,7 +67,7 @@ old_LDADD = -Lltdl $(LIBLTDL) AT_DATA([old.c], [[#include #include "ltdl.h" -int main (int argc, const void *argv[]) { +main () { putchar ('.'); putchar (lt_dlinit () ? 'E' : '.'); putchar (lt_dlexit () ? 'E' : '.');