]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: use K&R main() syntax for old-ltdl-iface.at.
authorGary V. Vaughan <gary@gnu.org>
Sat, 26 Oct 2013 00:33:14 +0000 (13:33 +1300)
committerGary V. Vaughan <gary@gnu.org>
Sat, 26 Oct 2013 00:33:14 +0000 (13:33 +1300)
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 <gary@gnu.org>
tests/old-ltdl-iface.at

index 9c9d5faf9b307eb656b1f7688096315d36b2625c..58ca09f6c6b20f8d700c0b6b106d2f82c0ed48a0 100644 (file)
@@ -67,7 +67,7 @@ old_LDADD = -Lltdl $(LIBLTDL)
 AT_DATA([old.c],
 [[#include <stdio.h>
 #include "ltdl.h"
-int main (int argc, const void *argv[]) {
+main () {
   putchar ('.');
   putchar (lt_dlinit () ? 'E' : '.');
   putchar (lt_dlexit () ? 'E' : '.');