mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01: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:
committed by
Christian Helmuth
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user