Style cleanup: "foo &x", not "foo& x"
This commit is contained in:
committed by
John Hood
parent
9e9919c941
commit
aeffb71cfc
@@ -175,13 +175,13 @@ int main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
client.shutdown();
|
||||
} catch ( const Network::NetworkException& e ) {
|
||||
} catch ( const Network::NetworkException &e ) {
|
||||
fprintf( stderr, "Network exception: %s\r\n",
|
||||
e.what() );
|
||||
} catch ( const Crypto::CryptoException& e ) {
|
||||
} catch ( const Crypto::CryptoException &e ) {
|
||||
fprintf( stderr, "Crypto exception: %s\r\n",
|
||||
e.what() );
|
||||
} catch ( const std::string& s ) {
|
||||
} catch ( const std::string &s ) {
|
||||
fprintf( stderr, "Error: %s\r\n", s.c_str() );
|
||||
}
|
||||
|
||||
|
||||
@@ -310,11 +310,11 @@ int main( int argc, char *argv[] )
|
||||
|
||||
try {
|
||||
return run_server( desired_ip, desired_port, command_path, command_argv, colors, verbose, with_motd );
|
||||
} catch ( const Network::NetworkException& e ) {
|
||||
} catch ( const Network::NetworkException &e ) {
|
||||
fprintf( stderr, "Network exception: %s\n",
|
||||
e.what() );
|
||||
return 1;
|
||||
} catch ( const Crypto::CryptoException& e ) {
|
||||
} catch ( const Crypto::CryptoException &e ) {
|
||||
fprintf( stderr, "Crypto exception: %s\n",
|
||||
e.what() );
|
||||
return 1;
|
||||
@@ -490,10 +490,10 @@ int run_server( const char *desired_ip, const char *desired_port,
|
||||
|
||||
try {
|
||||
serve( master, terminal, *network );
|
||||
} catch ( const Network::NetworkException& e ) {
|
||||
} catch ( const Network::NetworkException &e ) {
|
||||
fprintf( stderr, "Network exception: %s\n",
|
||||
e.what() );
|
||||
} catch ( const Crypto::CryptoException& e ) {
|
||||
} catch ( const Crypto::CryptoException &e ) {
|
||||
fprintf( stderr, "Crypto exception: %s\n",
|
||||
e.what() );
|
||||
}
|
||||
@@ -726,10 +726,10 @@ void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &network
|
||||
}
|
||||
|
||||
network.tick();
|
||||
} catch ( const Network::NetworkException& e ) {
|
||||
} catch ( const Network::NetworkException &e ) {
|
||||
fprintf( stderr, "%s\n", e.what() );
|
||||
spin();
|
||||
} catch ( const Crypto::CryptoException& e ) {
|
||||
} catch ( const Crypto::CryptoException &e ) {
|
||||
if ( e.fatal ) {
|
||||
throw;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user