diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-01-25 12:40:11 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-01-25 12:40:11 -0500 |
commit | 1cffce1077c594f30ab9df75b53e29385bce1cce (patch) | |
tree | fbb2d8c349d6632724d807886c14b67f88c30c8a /dbtests | |
parent | 9830683828101ce75a7b6a523cc0435cff22ca7c (diff) | |
download | mongo-1cffce1077c594f30ab9df75b53e29385bce1cce.tar.gz |
get rid of #define exit and just defined it in the mongo namespace
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/dbtests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbtests/dbtests.cpp b/dbtests/dbtests.cpp index a6232ff4a97..73b5f30843a 100644 --- a/dbtests/dbtests.cpp +++ b/dbtests/dbtests.cpp @@ -52,21 +52,21 @@ int main( int argc, char** argv ) { if ( argv[ i ] == string( "-dbpath" ) ) { if ( i == argc - 1 ) { usage(); - exit( -1 ); + dbexit( -1 ); } dbpathSpec = argv[ ++i ]; offset += 2; } else if ( argv[ i ] == string( "-seed" ) ) { if ( i == argc - 1 ) { usage(); - exit( -1 ); + dbexit( -1 ); } // Don't bother checking for conversion error seed = strtoll( argv[ ++i ], 0, 10 ); offset += 2; } else if ( argv[ i ] == string( "-help" ) ) { usage(); - exit( 0 ); + dbexit( 0 ); } else if ( offset ) { argv[ i - offset ] = argv[ i ]; } |