Various switch statement fixes.

This commit is contained in:
John Hood
2016-11-07 01:00:03 -05:00
parent 3346419724
commit 4835dcf5ee
3 changed files with 20 additions and 8 deletions
+3 -2
View File
@@ -250,8 +250,9 @@ int main( int argc, char *argv[] )
locale_vars.push_back( string( optarg ) );
break;
default:
print_usage( stderr, argv[ 0 ] );
/* don't die on unknown options */
print_usage( stderr, argv[ 0 ] );
break;
}
}
} else if ( argc == 1 ) {
@@ -658,7 +659,7 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &
bool child_released = false;
while ( 1 ) {
while ( true ) {
try {
static const uint64_t timeout_if_no_client = 60000;
int timeout = INT_MAX;