From: "Daniel P. Berrange" <berrange(a)redhat.com>
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(a)redhat.com>
---
src/secret/secret_driver.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c
index 71b3fe7..be32a66 100644
--- a/src/secret/secret_driver.c
+++ b/src/secret/secret_driver.c
@@ -557,7 +557,7 @@ static int
secretConnectNumOfSecrets(virConnectPtr conn)
{
virSecretDriverStatePtr driver = conn->secretPrivateData;
- int i;
+ size_t i;
virSecretEntryPtr secret;
if (virConnectNumOfSecretsEnsureACL(conn) < 0)
@@ -580,7 +580,7 @@ static int
secretConnectListSecrets(virConnectPtr conn, char **uuids, int maxuuids)
{
virSecretDriverStatePtr driver = conn->secretPrivateData;
- int i;
+ size_t i;
virSecretEntryPtr secret;
memset(uuids, 0, maxuuids * sizeof(*uuids));
@@ -651,7 +651,7 @@ secretConnectListAllSecrets(virConnectPtr conn,
int ret_nsecrets = 0;
virSecretPtr secret = NULL;
virSecretEntryPtr entry = NULL;
- int i = 0;
+ size_t i = 0;
int ret = -1;
virCheckFlags(VIR_CONNECT_LIST_SECRETS_FILTERS_ALL, -1);
--
1.8.1.4