BNetworkAddress: Make the first SetToLinkLevel() take a const pointer.

Technically breaks ABI. However to the best of my knowledge,
nothing uses this method outside of the tree.
This commit is contained in:
Augustin Cavalier 2022-10-25 22:50:13 -04:00
parent 9bceb7fb3c
commit 65c155bede
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public:
void SetPort(uint16 port);
status_t SetPort(const char* service);
void SetToLinkLevel(uint8* address, size_t length);
void SetToLinkLevel(const uint8* address, size_t length);
void SetToLinkLevel(const char* name);
void SetToLinkLevel(uint32 index);
void SetLinkLevelIndex(uint32 index);

View File

@ -533,7 +533,7 @@ BNetworkAddress::SetPort(uint16 port)
void
BNetworkAddress::SetToLinkLevel(uint8* address, size_t length)
BNetworkAddress::SetToLinkLevel(const uint8* address, size_t length)
{
sockaddr_dl& link = (sockaddr_dl&)fAddress;
memset(&link, 0, sizeof(sockaddr_dl));