]> xenbits.xensource.com Git - libvirt.git/commit
util: use nlmsg_find_attr() instead of an open-coded loop
authorLaine Stump <laine@laine.org>
Tue, 8 Jan 2019 19:13:00 +0000 (14:13 -0500)
committerLaine Stump <laine@laine.org>
Thu, 10 Jan 2019 17:37:09 +0000 (12:37 -0500)
commit7282f455aaaa8bf2f73236aa9ec6b65b33c0fcdb
tree935703069981c381aa69f5b15acfc6a1b2cfac99
parent37bb6facfc467179d6cfe6186ad6d5a55285c2c7
util: use nlmsg_find_attr() instead of an open-coded loop

This is about the same number of code lines, but is simpler, and more
consistent with what will be added to check another attribute in a
coming patch.

As a side effect, it

Resolves: https://bugzilla.redhat.com/1583131

Signed-off-by: Laine Stump <laine@laine.org>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/virnetdevip.c