]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Drop @custom_lease_file_len variable from networkGetDHCPLeases()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Dec 2020 15:09:12 +0000 (16:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Jan 2021 14:33:31 +0000 (15:33 +0100)
commit9c65363a4089bb5a2bf91db45bb9531a20784c5f
tree4a9f63ee84237e8d6f023f403c052cecba4b6b11
parent6f1ae57129f28444d14bd4b6dbcbf4158b95431b
network: Drop @custom_lease_file_len variable from networkGetDHCPLeases()

We don't need to track the lease file size. Instead, we can
simply check if the file was empty by comparing the buffer the
file was read into with an empty string.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/network/bridge_driver.c