summaryrefslogtreecommitdiffstats
path: root/src/shared/hwdb-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-13 09:40:53 +0200
committerLennart Poettering <lennart@poettering.net>2023-06-13 09:40:53 +0200
commit27e18c23bcb4046fc283341157443d5488244e95 (patch)
tree4d016f2bcbb300aa9432a8367187c47fa823bfa3 /src/shared/hwdb-util.c
parentupdate TODO (diff)
downloadsystemd-27e18c23bcb4046fc283341157443d5488244e95.tar.xz
systemd-27e18c23bcb4046fc283341157443d5488244e95.zip
tmpfile-util: turn last parameter of link_tmpfile() into a proper flags
This changes a boolean param into a proper bitflag field. Given this only defines a single flag for now this doesn't look like much of an improvement. But we'll add another flag shortly, where it starts to make more sense.
Diffstat (limited to 'src/shared/hwdb-util.c')
-rw-r--r--src/shared/hwdb-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/hwdb-util.c b/src/shared/hwdb-util.c
index a2fbcd7078..cf41d6a474 100644
--- a/src/shared/hwdb-util.c
+++ b/src/shared/hwdb-util.c
@@ -408,7 +408,7 @@ static int trie_store(struct trie *trie, const char *filename, bool compat) {
return -errno;
fwrite(&h, sizeof(struct trie_header_f), 1, f);
- r = flink_tmpfile(f, filename_tmp, filename, /* replace= */ true);
+ r = flink_tmpfile(f, filename_tmp, filename, LINK_TMPFILE_REPLACE);
if (r < 0)
return r;