summaryrefslogtreecommitdiff
path: root/src/network/test-network.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-04 18:39:23 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-16 11:02:15 +0100
commite2054217d506c73232d00c850bb46ea9caf26cd8 (patch)
tree089308c31dbb9c0ec9a09279f869e91c049c62df /src/network/test-network.c
parent7d9ec609903a0d4ae121bb2cc39aa74773eee984 (diff)
downloadsystemd-e2054217d506c73232d00c850bb46ea9caf26cd8.tar.gz
Move hostname setup logic to new shared/hostname-setup.[ch]
No functional change, just moving a bunch of things around. Before we needed a rather complicated setup to test hostname_setup(), because the code was in src/core/. When things are moved to src/shared/ we can just test it as any function. The test is still "unsafe" because hostname_setup() may modify the hostname.
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r--src/network/test-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c
index 03c94409fa..45cd3fa973 100644
--- a/src/network/test-network.c
+++ b/src/network/test-network.c
@@ -8,7 +8,7 @@
#include "alloc-util.h"
#include "dhcp-lease-internal.h"
#include "ether-addr-util.h"
-#include "hostname-util.h"
+#include "hostname-setup.h"
#include "network-internal.h"
#include "networkd-manager.h"
#include "string-util.h"