You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
2.4 KiB

  1. --- a/dcw/controller.cxx
  2. +++ b/dcw/controller.cxx
  3. @@ -195,7 +195,7 @@ void Controller::OnStationUnjoin(const MacAddress& primaryMacAddr, const Message
  4. //remove any channel bondings matching the provided data channel mac addresses
  5. for (unsigned i = 0; i < m.data_macaddr_count; i++) {
  6. const ::dcw::MacAddress dcaddr(m.data_macaddrs[i]);
  7. - const ::dcw::TrafficPolicy::DataChannelMap::iterator dcmEntry = state.policy.dataChannels.find(dcaddr);
  8. + ::dcw::TrafficPolicy::DataChannelMap::iterator dcmEntry = state.policy.dataChannels.find(dcaddr);
  9. if (dcmEntry == state.policy.dataChannels.end()) continue;
  10. if (dcmEntry->second == NULL) {
  11. dcwlogwarnf("Data channel MAC address %s on client %s is not currently bonded\n", dcaddr.ToString().c_str(), primaryMacAddr.ToString().c_str());
  12. @@ -238,7 +238,7 @@ void Controller::OnStationAck(const MacAddress& primaryMacAddr, const Message& m
  13. dcwlogdbgf("Got a station ACK from %s\n", primaryMacAddr.ToString().c_str());
  14. // first make sure this client has actually sent a join first...
  15. - const ClientStateMap::iterator client = _clients.find(primaryMacAddr);
  16. + ClientStateMap::iterator client = _clients.find(primaryMacAddr);
  17. if (client == _clients.end()) {
  18. dcwlogerrf("Got a client ACK without a station join from %s\n", primaryMacAddr.ToString().c_str());
  19. Message reply(DCWMSG_AP_REJECT_STA);
  20. --- a/dcwposix/processsignalmanager.cxx
  21. +++ b/dcwposix/processsignalmanager.cxx
  22. @@ -40,7 +40,7 @@ ProcessSignalManager::~ProcessSignalManager() {
  23. }
  24. void ProcessSignalManager::RegisterEventHandler(const int signum, ::dcwposix::ProcessSignalManager::EventHandler& eventHandler) {
  25. - const SignalMap::iterator i = _sigmap.find(signum);
  26. + SignalMap::iterator i = _sigmap.find(signum);
  27. if (i == _sigmap.end()) {
  28. //be sure to preseve the old signal when inserting a new "unseen" signal
  29. _sigmap[signum].insert(&eventHandler);
  30. @@ -53,7 +53,7 @@ void ProcessSignalManager::RegisterEventHandler(const int signum, ::dcwposix::Pr
  31. }
  32. void ProcessSignalManager::UnRegisterEventHandler(const int signum, ::dcwposix::ProcessSignalManager::EventHandler& eventHandler) {
  33. - const SignalMap::iterator i = _sigmap.find(signum);
  34. + SignalMap::iterator i = _sigmap.find(signum);
  35. if (i == _sigmap.end()) {
  36. dcwlogwarnf("Attempting to unregister handler %p non-registered process signal #%d\n", &eventHandler, signum);