Bug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.x
authorFaker Moatamri <faker.moatamri@sophia.inria.fr>
Tue Aug 04 09:19:32 2009 -0400 (6 months ago)
changeset 45389d68322b34b8
parent 4537 339edb6bdedd
child 4539 7ff2ecfe943c
Bug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.xBug 630: Make wimax compile with gcc-3.4.x
src/devices/wimax/burst-profile-manager.cc
src/devices/wimax/mac-messages.cc
src/devices/wimax/packet-classifier.cc
src/devices/wimax/wimax-net-device.cc
     1.1 --- a/src/devices/wimax/burst-profile-manager.cc	Tue Aug 04 09:16:24 2009 -0400
     1.2 +++ b/src/devices/wimax/burst-profile-manager.cc	Tue Aug 04 09:19:32 2009 -0400
     1.3 @@ -117,7 +117,7 @@
     1.4      //burst profile got to be there in DCD/UCD, assuming always all profiles are defined in DCD/UCD
     1.5      NS_ASSERT(false);
     1.6  
     1.7 -    return -1;
     1.8 +    return ~0;
     1.9    }
    1.10  
    1.11    uint8_t
     2.1 --- a/src/devices/wimax/mac-messages.cc	Tue Aug 04 09:16:24 2009 -0400
     2.2 +++ b/src/devices/wimax/mac-messages.cc	Tue Aug 04 09:19:32 2009 -0400
     2.3 @@ -29,7 +29,7 @@
     2.4    NS_OBJECT_ENSURE_REGISTERED ( ManagementMessageType);
     2.5  
     2.6    ManagementMessageType::ManagementMessageType(void) :
     2.7 -    m_type(-1)
     2.8 +    m_type(~0)
     2.9    {
    2.10    }
    2.11  
     3.1 --- a/src/devices/wimax/packet-classifier.cc	Tue Aug 04 09:16:24 2009 -0400
     3.2 +++ b/src/devices/wimax/packet-classifier.cc	Tue Aug 04 09:19:32 2009 -0400
     3.3 @@ -38,7 +38,7 @@
     3.4    }
     3.5  
     3.6    PacketClassifier::PacketClassifier(void) :
     3.7 -    m_priority(-1)
     3.8 +    m_priority(~0)
     3.9    {
    3.10    }
    3.11  
     4.1 --- a/src/devices/wimax/wimax-net-device.cc	Tue Aug 04 09:16:24 2009 -0400
     4.2 +++ b/src/devices/wimax/wimax-net-device.cc	Tue Aug 04 09:19:32 2009 -0400
     4.3 @@ -46,7 +46,7 @@
     4.4    NS_OBJECT_ENSURE_REGISTERED ( WimaxNetDevice);
     4.5  
     4.6    uint32_t WimaxNetDevice::m_nrFrames = 0;
     4.7 -  uint8_t WimaxNetDevice::m_direction = -1;
     4.8 +  uint8_t WimaxNetDevice::m_direction = ~0;
     4.9    Time WimaxNetDevice::m_frameStartTime = Seconds(0);
    4.10  
    4.11    TypeId