From: Raul Cheleguini Date: Thu, 26 Oct 2023 17:22:31 +0000 (-0300) Subject: nspawn: Make parameter provided_mac a const for setup_veth() X-Git-Tag: v255-rc1~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e21da878cb3186bbb443d46bdbb54da41917d11;p=thirdparty%2Fsystemd.git nspawn: Make parameter provided_mac a const for setup_veth() --- diff --git a/src/nspawn/nspawn-network.c b/src/nspawn/nspawn-network.c index 853f4608d3f..c661f1d9e0b 100644 --- a/src/nspawn/nspawn-network.c +++ b/src/nspawn/nspawn-network.c @@ -237,7 +237,7 @@ int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge, - struct ether_addr *provided_mac) { + const struct ether_addr *provided_mac) { _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; struct ether_addr mac_host, mac_container; diff --git a/src/nspawn/nspawn-network.h b/src/nspawn/nspawn-network.h index 8e37d15ad27..a785f8ea42f 100644 --- a/src/nspawn/nspawn-network.h +++ b/src/nspawn/nspawn-network.h @@ -9,7 +9,7 @@ int test_network_interfaces_initialized(char **iface_pairs); -int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge, struct ether_addr *provided_mac); +int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge, const struct ether_addr *provided_mac); int setup_veth_extra(const char *machine_name, pid_t pid, char **pairs); int setup_bridge(const char *veth_name, const char *bridge_name, bool create);