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

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

Location:
source/ariba/overlay/messages
Files:
3 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}
  • source/ariba/overlay/messages/DHTMessage.h

    r6835 r6919  
    3333
    3434        bool hasValues() const {
    35                 values.size() != 0;
     35                return values.size() != 0;
    3636        }
    3737
  • source/ariba/overlay/messages/OverlayMsg.h

    r6266 r6919  
    213213        uint8_t increaseNumHops() {
    214214                hops++;
     215                return hops;
    215216        }
    216217
Note: See TracChangeset for help on using the changeset viewer.