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:
parent
9bceb7fb3c
commit
65c155bede
@ -75,7 +75,7 @@ public:
|
|||||||
void SetPort(uint16 port);
|
void SetPort(uint16 port);
|
||||||
status_t SetPort(const char* service);
|
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(const char* name);
|
||||||
void SetToLinkLevel(uint32 index);
|
void SetToLinkLevel(uint32 index);
|
||||||
void SetLinkLevelIndex(uint32 index);
|
void SetLinkLevelIndex(uint32 index);
|
||||||
|
@ -533,7 +533,7 @@ BNetworkAddress::SetPort(uint16 port)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BNetworkAddress::SetToLinkLevel(uint8* address, size_t length)
|
BNetworkAddress::SetToLinkLevel(const uint8* address, size_t length)
|
||||||
{
|
{
|
||||||
sockaddr_dl& link = (sockaddr_dl&)fAddress;
|
sockaddr_dl& link = (sockaddr_dl&)fAddress;
|
||||||
memset(&link, 0, sizeof(sockaddr_dl));
|
memset(&link, 0, sizeof(sockaddr_dl));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user