Fix broken compile on Ubuntu 12.04

This commit is contained in:
John Hood
2015-12-07 00:25:47 -05:00
parent 1d71895ff4
commit 90a529b18a
+6 -4
View File
@@ -745,12 +745,14 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &
if ( network_timeout_ms && if ( network_timeout_ms &&
network_timeout_ms <= time_since_remote_state ) { network_timeout_ms <= time_since_remote_state ) {
idle_shutdown = true; idle_shutdown = true;
fprintf( stderr, "Network idle for %" PRIu64 " seconds.\n", time_since_remote_state / 1000 ); fprintf( stderr, "Network idle for %llu seconds.\n",
static_cast<unsigned long long>( time_since_remote_state / 1000 ) );
} }
if ( sel.signal( SIGUSR1 ) ) { if ( sel.signal( SIGUSR1 ) ) {
if ( !network_signaled_timeout_ms || network_signaled_timeout_ms <= time_since_remote_state ) { if ( !network_signaled_timeout_ms || network_signaled_timeout_ms <= time_since_remote_state ) {
idle_shutdown = true; idle_shutdown = true;
fprintf( stderr, "Network idle for %"PRIu64" seconds when SIGUSR1 received\n", time_since_remote_state / 1000 ); fprintf( stderr, "Network idle for %llu seconds when SIGUSR1 received\n",
static_cast<unsigned long long>( time_since_remote_state / 1000 ) );
} }
} }
@@ -812,8 +814,8 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &
if ( !network.get_remote_state_num() if ( !network.get_remote_state_num()
&& time_since_remote_state >= timeout_if_no_client ) { && time_since_remote_state >= timeout_if_no_client ) {
fprintf( stderr, "No connection within %" PRIu64 " seconds.\n", fprintf( stderr, "No connection within %llu seconds.\n",
timeout_if_no_client / 1000 ); static_cast<unsigned long long>( timeout_if_no_client / 1000 ) );
break; break;
} }