dryang / rpms / systemd

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