mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-04 17:53:07 +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 **
|
** 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
|
void print(Genode::Output &output) const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user