network,sd-hwdb: voidify fchmod()

Fixes CID#1453294.
This commit is contained in:
Yu Watanabe
2021-05-28 19:41:03 +09:00
parent 50fd596efc
commit a04842dfb2
2 changed files with 2 additions and 2 deletions

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)

View File

@@ -163,7 +163,7 @@ int link_lldp_save(Link *link) {
if (r < 0)
goto finish;
fchmod(fileno(f), 0644);
(void) fchmod(fileno(f), 0644);
for (i = 0; i < n; i++) {
const void *p;