summaryrefslogtreecommitdiff
path: root/src/hibernate-resume
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-11-05 17:29:43 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-11-08 13:41:13 +0100
commitbaa6a42d276d3c6bcc3b6c130f1395c0119656f6 (patch)
treec8e8c3a944fe719ada539ccb5cc3666859d40b2f /src/hibernate-resume
parentb61b95ae9e5c6fe9f34fcadb63175631c36d8e17 (diff)
downloadsystemd-baa6a42d276d3c6bcc3b6c130f1395c0119656f6.tar.gz
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.
Diffstat (limited to 'src/hibernate-resume')
-rw-r--r--src/hibernate-resume/hibernate-resume-generator.c1
-rw-r--r--src/hibernate-resume/hibernate-resume.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/hibernate-resume/hibernate-resume-generator.c b/src/hibernate-resume/hibernate-resume-generator.c
index 82c2a56493..be52c21d00 100644
--- a/src/hibernate-resume/hibernate-resume-generator.c
+++ b/src/hibernate-resume/hibernate-resume-generator.c
@@ -8,6 +8,7 @@
#include "dropin.h"
#include "fstab-util.h"
#include "generator.h"
+#include "initrd-util.h"
#include "log.h"
#include "main-func.h"
#include "mkdir-label.h"
diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c
index 1c7d9179d8..9a9df5d22f 100644
--- a/src/hibernate-resume/hibernate-resume.c
+++ b/src/hibernate-resume/hibernate-resume.c
@@ -7,8 +7,8 @@
#include "alloc-util.h"
#include "devnum-util.h"
#include "fileio.h"
+#include "initrd-util.h"
#include "log.h"
-#include "util.h"
int main(int argc, char *argv[]) {
struct stat st;