summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-builtin-net_setup_link.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-05-23 09:37:28 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-23 15:58:03 +0200
commitafca7ac13d1820e4d63fd7eb840ec33a93a24899 (patch)
treecda118918c3bec64deea4f7501d789848afa1ea0 /src/udev/udev-builtin-net_setup_link.c
parentMerge pull request #19681 from yuwata/ethtool-util-log (diff)
downloadsystemd-afca7ac13d1820e4d63fd7eb840ec33a93a24899.tar.xz
systemd-afca7ac13d1820e4d63fd7eb840ec33a93a24899.zip
udev/net: rename link_config_ctx -> LinkConfigContext
Diffstat (limited to 'src/udev/udev-builtin-net_setup_link.c')
-rw-r--r--src/udev/udev-builtin-net_setup_link.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/udev/udev-builtin-net_setup_link.c b/src/udev/udev-builtin-net_setup_link.c
index 87e1fb133e..cb5742999c 100644
--- a/src/udev/udev-builtin-net_setup_link.c
+++ b/src/udev/udev-builtin-net_setup_link.c
@@ -8,7 +8,7 @@
#include "string-util.h"
#include "udev-builtin.h"
-static link_config_ctx *ctx = NULL;
+static LinkConfigContext *ctx = NULL;
static int builtin_net_setup_link(sd_device *dev, int argc, char **argv, bool test) {
_cleanup_free_ char *driver = NULL;
@@ -69,8 +69,7 @@ static int builtin_net_setup_link_init(void) {
}
static void builtin_net_setup_link_exit(void) {
- link_config_ctx_free(ctx);
- ctx = NULL;
+ ctx = link_config_ctx_free(ctx);
log_debug("Unloaded link configuration context.");
}