daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
698723
From 93c42f4da4563d225e3a2b9e72e8f9bb50d86bb1 Mon Sep 17 00:00:00 2001
698723
From: David Tardon <dtardon@redhat.com>
698723
Date: Fri, 17 Sep 2021 15:10:03 +0200
698723
Subject: [PATCH] Fix LGTM build
698723
698723
Related: #1850986
698723
---
698723
 src/network/netdev/netdev.c    | 2 +-
698723
 src/network/networkd-network.c | 2 +-
698723
 2 files changed, 2 insertions(+), 2 deletions(-)
698723
698723
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c
698723
index 82ce88402f..e97cc07028 100644
698723
--- a/src/network/netdev/netdev.c
698723
+++ b/src/network/netdev/netdev.c
698723
@@ -640,7 +640,7 @@ static int netdev_load_one(Manager *manager, const char *filename) {
698723
                              netdev_raw->match_host, netdev_raw->match_virt,
698723
                              netdev_raw->match_kernel_cmdline, netdev_raw->match_kernel_version,
698723
                              netdev_raw->match_arch,
698723
-                             NULL, NULL, NULL, NULL, NULL, NULL) <= 0)
698723
+                             NULL, NULL, NULL, NULL, NULL, NULL, NULL) <= 0)
698723
                 return 0;
698723
 
698723
         if (netdev_raw->kind == _NETDEV_KIND_INVALID) {
698723
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
698723
index 429aac5e6c..7637d135a4 100644
698723
--- a/src/network/networkd-network.c
698723
+++ b/src/network/networkd-network.c
698723
@@ -479,7 +479,7 @@ int network_get(Manager *manager, struct udev_device *device,
698723
                                      network->match_virt, network->match_kernel_cmdline,
698723
                                      network->match_kernel_version, network->match_arch,
698723
                                      address, path, parent_driver, driver,
698723
-                                     devtype, ifname)) {
698723
+                                     devtype, ifname, NULL)) {
698723
                         if (network->match_name && device) {
698723
                                 const char *attr;
698723
                                 uint8_t name_assign_type = NET_NAME_UNKNOWN;