Skip to content

Commit

Permalink
Checked and updated anything that did not fit code guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Nov 11, 2023
1 parent 6396f31 commit e199c57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/internal_modules/roc_address/protocol_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,21 @@ void ProtocolMap::add_proto_(const ProtocolAttrs& proto) {
protos_[proto.protocol] = proto;
}

bool ProtocolMap::get_supported_interfaces(core::Array<Interface>& interfaceArray) {
interfaceArray.clear();
bool interfacesExist = false;
bool ProtocolMap::get_supported_interfaces(core::Array<Interface>& interface_array) {
interface_array.clear();
bool interfaces_exist = false;

for (size_t x = Iface_Consolidated + 1; x != Iface_Max; x++) {
for (size_t y = 0; y < MaxProtos; y++) {
if (x == protos_[y].iface) {
interfaceArray.push_back(protos_[y].iface);
interfacesExist = true;
interface_array.push_back(protos_[y].iface);
interfaces_exist = true;
break;
}
}
}

return interfacesExist;
return interfaces_exist;
}

bool ProtocolMap::get_supported_protocols(Interface interface, core::StringList& list) {
Expand Down

0 comments on commit e199c57

Please sign in to comment.