network,sd-hwdb: voidify fchmod()

Fixes CID#1453294.
This commit is contained in:
Yu Watanabe
2021-05-28 19:41:07 +09:00
parent 50fd596efc
commit a04842dfb2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ static int trie_store(struct trie *trie, const char *filename, bool compat) {
r = fopen_temporary(filename, &t.f, &filename_tmp);
if (r < 0)
return r;
fchmod(fileno(t.f), 0444);
(void) fchmod(fileno(t.f), 0444);
/* write nodes */
if (fseeko(t.f, sizeof(struct trie_header_f), SEEK_SET) < 0)