From 1d376717c1653c5ed455ee3a8bae975aa96e52b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Thu, 13 Apr 2023 15:26:00 +0200 Subject: [PATCH] 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 --- repos/os/include/net/netaddress.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/net/netaddress.h b/repos/os/include/net/netaddress.h index f70c0d80f5..54e1e84a50 100644 --- a/repos/os/include/net/netaddress.h +++ b/repos/os/include/net/netaddress.h @@ -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 {