summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2020-11-23 13:09:35 +0100
committerMichal Privoznik <mprivozn@redhat.com>2020-11-23 13:35:16 +0100
commitcbf33fbaf6c8ab26c332ba2fbbe15a38769562e8 (patch)
tree90bc9b9594fa9b6906f7dcfce49e07388ed475b7 /include
parentf1c3d847ec0ad17e8a737466ba2be69300fc28c9 (diff)
downloadlibvirt-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.h2
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 */