mirror of https://gitee.com/openkylin/libvirt.git
Convert 'int i' to 'size_t i' in src/hyperv/ files
Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
c0b9e9b544
commit
9dc913172f
src/hyperv
|
@ -931,7 +931,7 @@ hypervConnectListDefinedDomains(virConnectPtr conn, char **const names, int maxn
|
|||
Msvm_ComputerSystem *computerSystemList = NULL;
|
||||
Msvm_ComputerSystem *computerSystem = NULL;
|
||||
int count = 0;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
if (maxnames == 0) {
|
||||
return 0;
|
||||
|
@ -1236,7 +1236,7 @@ hypervConnectListAllDomains(virConnectPtr conn,
|
|||
virDomainPtr *doms = NULL;
|
||||
int count = 0;
|
||||
int ret = -1;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
virCheckFlags(VIR_CONNECT_LIST_DOMAINS_FILTERS_ALL, -1);
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ int
|
|||
hypervParseUri(hypervParsedUri **parsedUri, virURIPtr uri)
|
||||
{
|
||||
int result = -1;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
if (parsedUri == NULL || *parsedUri != NULL) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Invalid argument"));
|
||||
|
|
Loading…
Reference in New Issue