]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainAuthorizedSSHKeysSet: Use uint for @nkeys
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Nov 2020 12:09:35 +0000 (13:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Nov 2020 12:35:16 +0000 (13:35 +0100)
commitcbf33fbaf6c8ab26c332ba2fbbe15a38769562e8
tree90bc9b9594fa9b6906f7dcfce49e07388ed475b7
parentf1c3d847ec0ad17e8a737466ba2be69300fc28c9
virDomainAuthorizedSSHKeysSet: Use uint for @nkeys

When introducing the API I've mistakenly used 'int' type for
@nkeys argument which does nothing more than tells the API how
many items there are in @keys array. Obviously, negative values
are not expected and therefore 'unsigned int' should have been
used.

Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
include/libvirt/libvirt-domain.h
src/driver-hypervisor.h
src/libvirt-domain.c
src/qemu/qemu_driver.c
src/remote/remote_driver.c