From: Markus F.X.J. Oberhumer Date: Sat, 3 Mar 2001 21:41:22 +0000 (+0000) Subject: * ltconfig.in: Added explicit return type to all C functions. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=94d3bf181aa0546b0521dc5eec1e86adc75718e1;p=thirdparty%2Flibtool.git * ltconfig.in: Added explicit return type to all C functions. --- diff --git a/ChangeLog b/ChangeLog index e2f333b49..f1d1f5acc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-03 Markus F.X.J. Oberhumer , + Alexandre Oliva + + * ltconfig.in: Added explicit return type to all C functions. + 2001-01-29 Alexandre Oliva * libltdl/Makefile.am (CLEANFILES): Clean conditionally-built diff --git a/ltconfig.in b/ltconfig.in index cfa10dbe0..45d8fb250 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1665,7 +1665,7 @@ void nm_test_func(){} #ifdef __cplusplus } #endif -main(){nm_test_var='a';nm_test_func();return(0);} +int main(){nm_test_var='a';nm_test_func();return(0);} EOF echo "$progname:@LINENO@: checking if global_symbol_pipe works" >&5 @@ -2638,8 +2638,9 @@ else # endif #endif -fnord() { int i=42;} -main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); +void fnord() { int i=42; } +int main() { + void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } @@ -2711,8 +2712,9 @@ else # endif #endif -fnord() { int i=42;} -main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); +void fnord() { int i=42;} +int main() { + void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }