Add const to fragmenter

This commit is contained in:
Keith Winstein
2012-02-26 03:59:00 -05:00
parent e5c8c33f4f
commit f0886a1dda
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ bool Fragment::operator==( const Fragment &x )
&& ( initialized == x.initialized ) && ( contents == x.contents );
}
vector<Fragment> Fragmenter::make_fragments( Instruction &inst, int MTU )
vector<Fragment> Fragmenter::make_fragments( const Instruction &inst, int MTU )
{
if ( (inst.old_num() != last_instruction.old_num())
|| (inst.new_num() != last_instruction.new_num())
+1 -1
View File
@@ -88,7 +88,7 @@ namespace Network {
last_instruction.set_old_num( -1 );
last_instruction.set_new_num( -1 );
}
vector<Fragment> make_fragments( Instruction &inst, int MTU );
vector<Fragment> make_fragments( const Instruction &inst, int MTU );
uint64_t last_ack_sent( void ) const { return last_instruction.ack_num(); }
};