Change return values to negative ints

This commit is contained in:
2018-03-16 18:49:09 +00:00
parent 7f8b8c6ee3
commit 6a708a00ac
3 changed files with 32 additions and 27 deletions
+3 -3
View File
@@ -35,19 +35,19 @@ int main( int argc, char* argv[] )
{
return 0;
}
if( iRet > 1 )
if( iRet < 0 )
{
printf( "Exiting with error \n" );
return 1;
}
if( CalypToolsApp.Process() > 1 )
if( CalypToolsApp.Process() < 0 )
{
printf( "Exiting with error \n" );
return 1;
}
if( CalypToolsApp.Close() > 1 )
if( CalypToolsApp.Close() < 0 )
{
printf( "Exiting with error \n" );
return 1;