mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
net/netaddress: make copy member function const
As the function does not alter the internal state of the object allow for using it in r/o contexts. Issue #4813
This commit is contained in:
parent
8f91f119b8
commit
1d376717c1
@ -52,7 +52,7 @@ struct Net::Network_address
|
||||
** Helper methods **
|
||||
*********************/
|
||||
|
||||
void copy(void *dst) { Genode::memcpy(dst, &addr[0], LEN); }
|
||||
void copy(void *dst) const { Genode::memcpy(dst, &addr[0], LEN); }
|
||||
|
||||
void print(Genode::Output &output) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user