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:
Josef Söntgen 2023-04-13 15:26:00 +02:00 committed by Christian Helmuth
parent 8f91f119b8
commit 1d376717c1

View File

@ -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
{