mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user