diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2020-11-23 13:09:35 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2020-11-23 13:35:16 +0100 |
commit | cbf33fbaf6c8ab26c332ba2fbbe15a38769562e8 (patch) | |
tree | 90bc9b9594fa9b6906f7dcfce49e07388ed475b7 /include | |
parent | f1c3d847ec0ad17e8a737466ba2be69300fc28c9 (diff) | |
download | libvirt-cbf33fbaf6c8ab26c332ba2fbbe15a38769562e8.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/libvirt-domain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h index d81157ccaf..b929877643 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -5115,7 +5115,7 @@ typedef enum { int virDomainAuthorizedSSHKeysSet(virDomainPtr domain, const char *user, const char **keys, - int nkeys, + unsigned int nkeys, unsigned int flags); #endif /* LIBVIRT_DOMAIN_H */ |