From 552c2436cf26a4d4c37906bdf855109cf8dd4373 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Thu, 22 Nov 2007 16:12:08 +0000 Subject: Syntax changes to test programs and restoration of Windows VC++ project files (gps). --- tests/playraw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/playraw.cpp') diff --git a/tests/playraw.cpp b/tests/playraw.cpp index 3b70cdb..a9e4db1 100644 --- a/tests/playraw.cpp +++ b/tests/playraw.cpp @@ -58,7 +58,7 @@ void usage( void ) { std::cout << " file = the raw file to play,\n"; std::cout << " device = optional device to use (default = 0),\n"; std::cout << " and channelOffset = an optional channel offset on the device (default = 0).\n\n"; - exit(0); + exit( 0 ); } struct OutputData { @@ -106,13 +106,13 @@ int main( int argc, char *argv[] ) if ( argc > 4 ) device = (unsigned int) atoi( argv[4] ); if ( argc > 5 ) - offset = (unsigned int) atoi(argv[5]); + offset = (unsigned int) atoi( argv[5] ); OutputData data; data.fd = fopen( file, "rb" ); if ( !data.fd ) { std::cout << "Unable to find or open file!\n"; - exit( 0 ); + exit( 1 ); } // Set our stream parameters for output only. -- cgit v1.2.3