From 90a529b18a91ed29cba5387c874d45fa1fbfaea2 Mon Sep 17 00:00:00 2001 From: John Hood Date: Mon, 7 Dec 2015 00:25:47 -0500 Subject: [PATCH] Fix broken compile on Ubuntu 12.04 --- src/frontend/mosh-server.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index aab2ead..45e4215 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -745,12 +745,14 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection & if ( network_timeout_ms && network_timeout_ms <= time_since_remote_state ) { 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( time_since_remote_state / 1000 ) ); } if ( sel.signal( SIGUSR1 ) ) { if ( !network_signaled_timeout_ms || network_signaled_timeout_ms <= time_since_remote_state ) { 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( 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() && time_since_remote_state >= timeout_if_no_client ) { - fprintf( stderr, "No connection within %" PRIu64 " seconds.\n", - timeout_if_no_client / 1000 ); + fprintf( stderr, "No connection within %llu seconds.\n", + static_cast( timeout_if_no_client / 1000 ) ); break; }