]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virlease: Use virTrimSpaces() instead of open coded alternative
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Dec 2020 15:09:10 +0000 (16:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Jan 2021 14:33:31 +0000 (15:33 +0100)
commit003fff38e753d2d7cacaa3afd3f942f938408334
tree0cba770b2e99d5dbb5f5d8a6a260610332b6025f
parent8e5659ed12d1f181297ed6d4e201bb1d6b6322b6
virlease: Use virTrimSpaces() instead of open coded alternative

In virLeaseNew() we are trying to remove trailing space (per
comment it may happen that older versions of dnsmasq put it into
an env variable). Well, instead of open coding it, we can use
virTrimSpaces().

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