]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-domain: Report errors on invalid --holdtime value for cmdSendKey
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Apr 2013 08:42:47 +0000 (10:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Apr 2013 13:23:09 +0000 (15:23 +0200)
commitf78266dfc22d3887cc2444ec0316621af2b017e0
tree44ac10e3e75bd34750131a90ee2f7f82004137f7
parent35d0f3b14a26cc73c7bba104126cc131b35d5931
virsh-domain: Report errors on invalid --holdtime value for cmdSendKey

Using of a incorrect value for the --holdtime option was silently
ignored and 0 was used. In case a negative number was used, it
overflowed as the API expects a unsigned int.

Fix the data type and getter function type and report errors on
incorrect values.
tools/virsh-domain.c