From baa6a42d276d3c6bcc3b6c130f1395c0119656f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 5 Nov 2022 17:29:43 +0100 Subject: basic: create new basic/initrd-util.[ch] for initrd-related functions I changed imports of util.h to initrd-util.h, or added an import of initrd-util.h, to keep compilation working. It turns out that many files didn't import util.h directly. When viewing the patch, don't be confused by git rename detection logic: a new .c file is added and two functions moved into it. --- src/shutdown/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shutdown') diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index dcee0f9006..045ff9f418 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -24,6 +24,7 @@ #include "exec-util.h" #include "fd-util.h" #include "fileio.h" +#include "initrd-util.h" #include "killall.h" #include "log.h" #include "parse-util.h" @@ -36,7 +37,6 @@ #include "sysctl-util.h" #include "terminal-util.h" #include "umount.h" -#include "util.h" #include "virt.h" #include "watchdog.h" -- cgit v1.2.1