a8c905
From 7fc7c2774e0836ace524215ced5c60db405a154a Mon Sep 17 00:00:00 2001
a8c905
From: David Tardon <dtardon@redhat.com>
a8c905
Date: Fri, 27 Nov 2020 10:25:12 +0100
a8c905
Subject: [PATCH] rename function
a8c905
a8c905
This happened upstream in commit
a8c905
54a8423788ec3cc6240959ab9f5cdac40baf047a, but I don't want to backport
a8c905
the whole commit...
a8c905
a8c905
Related: #1850986
a8c905
---
a8c905
 src/libsystemd-network/network-internal.c | 2 +-
a8c905
 src/libsystemd-network/network-internal.h | 2 +-
a8c905
 src/network/networkd-network-gperf.gperf  | 2 +-
a8c905
 src/udev/net/link-config-gperf.gperf      | 2 +-
a8c905
 4 files changed, 4 insertions(+), 4 deletions(-)
a8c905
a8c905
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
a8c905
index 0849b44ee2..629e858def 100644
a8c905
--- a/src/libsystemd-network/network-internal.c
a8c905
+++ b/src/libsystemd-network/network-internal.c
a8c905
@@ -183,7 +183,7 @@ int config_parse_net_condition(const char *unit,
a8c905
         return 0;
a8c905
 }
a8c905
 
a8c905
-int config_parse_ifnames(
a8c905
+int config_parse_match_ifnames(
a8c905
                 const char *unit,
a8c905
                 const char *filename,
a8c905
                 unsigned line,
a8c905
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h
a8c905
index 883f34b95c..9074758bbb 100644
a8c905
--- a/src/libsystemd-network/network-internal.h
a8c905
+++ b/src/libsystemd-network/network-internal.h
a8c905
@@ -34,7 +34,7 @@ bool net_match_config(Set *match_mac,
a8c905
 CONFIG_PARSER_PROTOTYPE(config_parse_net_condition);
a8c905
 CONFIG_PARSER_PROTOTYPE(config_parse_hwaddr);
a8c905
 CONFIG_PARSER_PROTOTYPE(config_parse_hwaddrs);
a8c905
-CONFIG_PARSER_PROTOTYPE(config_parse_ifnames);
a8c905
+CONFIG_PARSER_PROTOTYPE(config_parse_match_ifnames);
a8c905
 CONFIG_PARSER_PROTOTYPE(config_parse_ifalias);
a8c905
 CONFIG_PARSER_PROTOTYPE(config_parse_iaid);
a8c905
 CONFIG_PARSER_PROTOTYPE(config_parse_bridge_port_priority);
a8c905
diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf
a8c905
index 6ad5257f79..c4a2eccdc2 100644
a8c905
--- a/src/network/networkd-network-gperf.gperf
a8c905
+++ b/src/network/networkd-network-gperf.gperf
a8c905
@@ -24,7 +24,7 @@ Match.MACAddress,                       config_parse_hwaddrs,
a8c905
 Match.Path,                             config_parse_strv,                              0,                             offsetof(Network, match_path)
a8c905
 Match.Driver,                           config_parse_strv,                              0,                             offsetof(Network, match_driver)
a8c905
 Match.Type,                             config_parse_strv,                              0,                             offsetof(Network, match_type)
a8c905
-Match.Name,                             config_parse_ifnames,                           0,                             offsetof(Network, match_name)
a8c905
+Match.Name,                             config_parse_match_ifnames,                           0,                             offsetof(Network, match_name)
a8c905
 Match.Host,                             config_parse_net_condition,                     CONDITION_HOST,                offsetof(Network, match_host)
a8c905
 Match.Virtualization,                   config_parse_net_condition,                     CONDITION_VIRTUALIZATION,      offsetof(Network, match_virt)
a8c905
 Match.KernelCommandLine,                config_parse_net_condition,                     CONDITION_KERNEL_COMMAND_LINE, offsetof(Network, match_kernel_cmdline)
a8c905
diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf
a8c905
index 5640fa0513..b37836d852 100644
a8c905
--- a/src/udev/net/link-config-gperf.gperf
a8c905
+++ b/src/udev/net/link-config-gperf.gperf
a8c905
@@ -20,7 +20,7 @@ struct ConfigPerfItem;
a8c905
 %includes
a8c905
 %%
a8c905
 Match.MACAddress,                config_parse_hwaddrs,       0,                             offsetof(link_config, match_mac)
a8c905
-Match.OriginalName,              config_parse_ifnames,       0,                             offsetof(link_config, match_name)
a8c905
+Match.OriginalName,              config_parse_match_ifnames,       0,                             offsetof(link_config, match_name)
a8c905
 Match.Path,                      config_parse_strv,          0,                             offsetof(link_config, match_path)
a8c905
 Match.Driver,                    config_parse_strv,          0,                             offsetof(link_config, match_driver)
a8c905
 Match.Type,                      config_parse_strv,          0,                             offsetof(link_config, match_type)