diff --git a/src/libCom/test/epicsMathTest.c b/src/libCom/test/epicsMathTest.c index fe270ce5f..60ad94740 100644 --- a/src/libCom/test/epicsMathTest.c +++ b/src/libCom/test/epicsMathTest.c @@ -22,7 +22,7 @@ static char *truth[2] = {"false","true"}; -void epicsMathTest () +int epicsMathTest () { double a,b,c; @@ -41,4 +41,5 @@ void epicsMathTest () a=1e300; b=1e300; c=a/b; printf("a %e b %e c %e isnan %s isinf %s\n", a,b,c,truth[isnan(c) ? 1 : 0],truth[isinf(c) ? 1 : 0]); + return(0); } diff --git a/src/libCom/test/epicsMathTestMain.cpp b/src/libCom/test/epicsMathTestMain.cpp index 5f90e0e58..457e98808 100644 --- a/src/libCom/test/epicsMathTestMain.cpp +++ b/src/libCom/test/epicsMathTestMain.cpp @@ -13,7 +13,7 @@ */ extern "C" { -void epicsMathTest ( void ); +int epicsMathTest ( void ); } int main ( int , char *[] )