]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Emit proper error code in virTypedParamsValidate
authorJiri Denemark <jdenemar@redhat.com>
Tue, 18 Jun 2013 07:24:57 +0000 (09:24 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 24 Jun 2013 22:38:24 +0000 (00:38 +0200)
commit40369ea674e2f0ab300a8e683e5cd9c5cfaee8f0
tree0c5bd726ef4b9dcc9e05d69986a65a2d8a826676
parentc40ed4168adb61ccf8944878f8da6ffbf6119a36
util: Emit proper error code in virTypedParamsValidate

When unsupported parameter is passed to virTypedParamsValidate,
VIR_ERR_ARGUMENT_UNSUPPORTED should be returned rather than
VIR_ERR_INVALID_ARG, which is more appropriate for supported parameters
used incorrectly.
src/util/virtypedparam.c