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