From 04e426a7bf3d598143ee7275ffde91be22e77be0 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 3 Dec 2024 10:29:48 +0100 Subject: [PATCH] cloud-setup: s/_nmc_get_hwaddrs()/_nmc_get_ethernet_hwaddrs()/ Make it clear that this only works for Ethernet devices. --- src/nm-cloud-setup/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nm-cloud-setup/main.c b/src/nm-cloud-setup/main.c index 1de890be5..de03535eb 100644 --- a/src/nm-cloud-setup/main.c +++ b/src/nm-cloud-setup/main.c @@ -242,7 +242,7 @@ _device_get_hwaddr(NMDeviceEthernet *device) } static char ** -_nmc_get_hwaddrs(NMClient *nmc) +_nmc_get_ethernet_hwaddrs(NMClient *nmc) { gs_unref_ptrarray GPtrArray *hwaddrs = NULL; const GPtrArray *devices; @@ -352,7 +352,7 @@ _get_config(GCancellable *sigterm_cancellable, NMCSProvider *provider, NMClient }; gs_strfreev char **hwaddrs = NULL; - hwaddrs = _nmc_get_hwaddrs(nmc); + hwaddrs = _nmc_get_ethernet_hwaddrs(nmc); nmcs_provider_get_config(provider, TRUE,