Skip to content

Commit a04842d

Browse files
committed
network,sd-hwdb: voidify fchmod()
Fixes CID#1453294.
1 parent 50fd596 commit a04842d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsystemd/sd-hwdb/hwdb-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static int trie_store(struct trie *trie, const char *filename, bool compat) {
377377
r = fopen_temporary(filename, &t.f, &filename_tmp);
378378
if (r < 0)
379379
return r;
380-
fchmod(fileno(t.f), 0444);
380+
(void) fchmod(fileno(t.f), 0444);
381381

382382
/* write nodes */
383383
if (fseeko(t.f, sizeof(struct trie_header_f), SEEK_SET) < 0)

src/network/networkd-lldp-rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int link_lldp_save(Link *link) {
163163
if (r < 0)
164164
goto finish;
165165

166-
fchmod(fileno(f), 0644);
166+
(void) fchmod(fileno(f), 0644);
167167

168168
for (i = 0; i < n; i++) {
169169
const void *p;

0 commit comments

Comments
 (0)