Ignore:
Timestamp:
Nov 13, 2009, 1:41:34 PM (15 years ago)
Author:
mies
Message:

Fixed tons of warnings when using CXXFLAGS="-Wall"!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/messages/DHTMessage.cpp

    r6835 r6919  
    1010DHTMessage::DHTMessage() {
    1111        this->key.setLength(0);
    12         this->ttl =0 ;
     12        this->ttl = 0;
    1313        this->replace = false;
    1414}
     
    1818        this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    1919        this->key = key.clone();
    20         this->ttl =0 ;
     20        this->ttl = 0;
    2121        this->replace = false;
    2222}
     
    2626        this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    2727        this->key = key.clone();
    28         this->values.push_back(  value.clone() );
    29         this->ttl =0 ;
     28        this->values.push_back( value.clone() );
     29        this->ttl = 0;
    3030        this->replace = false;
    3131}
    3232
    3333DHTMessage::DHTMessage( const Data& key, const vector<Data>& values ) {
     34        this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    3435        this->key = key.clone();
    3536        BOOST_FOREACH(const Data value, values )
    36                         this->values.push_back( value.clone() );
     37                this->values.push_back( value.clone() );
     38        this->ttl = 0;
    3739        this->replace = false;
    3840}
Note: See TracChangeset for help on using the changeset viewer.