Don't use *_t for our own typedefs
It's reserved by POSIX. (closes #158 pull request)
This commit is contained in:
committed by
Keith Winstein
parent
937882caff
commit
cd2d482484
@@ -113,7 +113,7 @@ bool Complete::set_echo_ack( uint64_t now )
|
||||
bool ret = false;
|
||||
uint64_t newest_echo_ack = 0;
|
||||
|
||||
for ( input_history_t::const_iterator i = input_history.begin();
|
||||
for ( input_history_type::const_iterator i = input_history.begin();
|
||||
i != input_history.end();
|
||||
i++ ) {
|
||||
if ( i->second < now - ECHO_TIMEOUT ) {
|
||||
@@ -143,7 +143,7 @@ int Complete::wait_time( uint64_t now ) const
|
||||
return INT_MAX;
|
||||
}
|
||||
|
||||
input_history_t::const_iterator it = input_history.begin();
|
||||
input_history_type::const_iterator it = input_history.begin();
|
||||
it++;
|
||||
|
||||
uint64_t next_echo_ack_time = it->second + ECHO_TIMEOUT;
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace Terminal {
|
||||
Terminal::Emulator terminal;
|
||||
Terminal::Display display;
|
||||
|
||||
typedef std::list< std::pair<uint64_t, uint64_t> > input_history_t;
|
||||
input_history_t input_history;
|
||||
typedef std::list< std::pair<uint64_t, uint64_t> > input_history_type;
|
||||
input_history_type input_history;
|
||||
uint64_t echo_ack;
|
||||
|
||||
static const int ECHO_TIMEOUT = 50; /* for late ack */
|
||||
|
||||
Reference in New Issue
Block a user