summaryrefslogtreecommitdiff
path: root/src/fuzz
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-30 21:05:27 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-02 13:22:29 +0100
commite4de72876e6db5defb16ffe96c2b2ecce0e76a86 (patch)
tree521722d4609290490cafc759c88e2ce4f743908f /src/fuzz
parentee228be10c45e05d5ef5c9ed6b43175d3bf8c17b (diff)
downloadsystemd-e4de72876e6db5defb16ffe96c2b2ecce0e76a86.tar.gz
util-lib: split out all temporary file related calls into tmpfiles-util.c
This splits out a bunch of functions from fileio.c that have to do with temporary files. Simply to make the header files a bit shorter, and to group things more nicely. No code changes, just some rearranging of source files.
Diffstat (limited to 'src/fuzz')
-rw-r--r--src/fuzz/fuzz-catalog.c2
-rw-r--r--src/fuzz/fuzz-journald-native-fd.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fuzz/fuzz-catalog.c b/src/fuzz/fuzz-catalog.c
index e40fe60bfb..7ee9750141 100644
--- a/src/fuzz/fuzz-catalog.c
+++ b/src/fuzz/fuzz-catalog.c
@@ -2,9 +2,9 @@
#include "catalog.h"
#include "fd-util.h"
-#include "fileio.h"
#include "fs-util.h"
#include "fuzz.h"
+#include "tmpfile-util.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
_cleanup_(unlink_tempfilep) char name[] = "/tmp/fuzz-catalog.XXXXXX";
diff --git a/src/fuzz/fuzz-journald-native-fd.c b/src/fuzz/fuzz-journald-native-fd.c
index 95415d9f85..8e3e850fbb 100644
--- a/src/fuzz/fuzz-journald-native-fd.c
+++ b/src/fuzz/fuzz-journald-native-fd.c
@@ -1,13 +1,13 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include "fd-util.h"
-#include "fileio.h"
#include "fs-util.h"
-#include "fuzz.h"
#include "fuzz-journald.h"
+#include "fuzz.h"
#include "journald-native.h"
#include "memfd-util.h"
#include "process-util.h"
+#include "tmpfile-util.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
Server s;