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