]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: clean up virDomainNetIPParseXML()
authorLaine Stump <laine@laine.org>
Tue, 26 Apr 2016 16:18:53 +0000 (12:18 -0400)
committerLaine Stump <laine@laine.org>
Sun, 26 Jun 2016 23:33:07 +0000 (19:33 -0400)
commitbfd2de6eeda30264e3847fa1c21856aa448f8439
tree770c3abfc12451947817a7e941a8c7b35a529e75
parent22a6873a981ee0e63809bfba6b89939c62672a05
conf: clean up virDomainNetIPParseXML()

Rearrange this function to be better organized and more correct:

* the error codes were changed from the incorrect INVALID_ARG to
  XML_ERROR

* prefix still isn't required, but if present it must be valid or an
  error will be logged.

* don't emit a debug log just because prefix is missing - this
  is valid.

* group everything related to setting prefix in one place rather than
  scattered through the function.
src/conf/domain_conf.c