Re: [PATCH] virDomainAuthorizedSSHKeysSet: Use uint for @nkeys

2020-11-23 Thread Daniel P . Berrangé
On Mon, Nov 23, 2020 at 01:15:28PM +0100, Michal Privoznik wrote: > 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 'unsig

[PATCH] virDomainAuthorizedSSHKeysSet: Use uint for @nkeys

2020-11-23 Thread Michal Privoznik
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é Signed-o