mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
network,sd-hwdb: voidify fchmod()
Fixes CID#1453294.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user