networkd: unvoidify fwrite()

Those were the only two places we did that, so for consistency it's better
to drop it.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-12-05 19:03:26 +01:00
parent f9568765d4
commit d333b236f4

View File

@@ -147,8 +147,8 @@ int link_lldp_save(Link *link) {
goto finish;
u = htole64(sz);
(void) fwrite(&u, 1, sizeof(u), f);
(void) fwrite(p, 1, sz, f);
fwrite(&u, 1, sizeof(u), f);
fwrite(p, 1, sz, f);
}
r = fflush_and_check(f);