From ec1f3cf06fae19424f1871a8ce465c171a46b91e Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Tue, 25 Mar 2003 17:03:01 +0000 Subject: [PATCH] let test return int so vxWorks doesnt report error --- src/libCom/test/epicsMathTest.c | 3 ++- src/libCom/test/epicsMathTestMain.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 *[] )