mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 22:45:21 +00:00
Convert 'int i' to 'size_t i' in src/secret/ 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
716961372e
commit
8ae0528571
@ -544,7 +544,7 @@ static int
|
|||||||
secretConnectNumOfSecrets(virConnectPtr conn)
|
secretConnectNumOfSecrets(virConnectPtr conn)
|
||||||
{
|
{
|
||||||
virSecretDriverStatePtr driver = conn->secretPrivateData;
|
virSecretDriverStatePtr driver = conn->secretPrivateData;
|
||||||
int i;
|
size_t i;
|
||||||
virSecretEntryPtr secret;
|
virSecretEntryPtr secret;
|
||||||
|
|
||||||
if (virConnectNumOfSecretsEnsureACL(conn) < 0)
|
if (virConnectNumOfSecretsEnsureACL(conn) < 0)
|
||||||
@ -567,7 +567,7 @@ static int
|
|||||||
secretConnectListSecrets(virConnectPtr conn, char **uuids, int maxuuids)
|
secretConnectListSecrets(virConnectPtr conn, char **uuids, int maxuuids)
|
||||||
{
|
{
|
||||||
virSecretDriverStatePtr driver = conn->secretPrivateData;
|
virSecretDriverStatePtr driver = conn->secretPrivateData;
|
||||||
int i;
|
size_t i;
|
||||||
virSecretEntryPtr secret;
|
virSecretEntryPtr secret;
|
||||||
|
|
||||||
memset(uuids, 0, maxuuids * sizeof(*uuids));
|
memset(uuids, 0, maxuuids * sizeof(*uuids));
|
||||||
@ -636,7 +636,7 @@ secretConnectListAllSecrets(virConnectPtr conn,
|
|||||||
int ret_nsecrets = 0;
|
int ret_nsecrets = 0;
|
||||||
virSecretPtr secret = NULL;
|
virSecretPtr secret = NULL;
|
||||||
virSecretEntryPtr entry = NULL;
|
virSecretEntryPtr entry = NULL;
|
||||||
int i = 0;
|
size_t i = 0;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
virCheckFlags(VIR_CONNECT_LIST_SECRETS_FILTERS_ALL, -1);
|
virCheckFlags(VIR_CONNECT_LIST_SECRETS_FILTERS_ALL, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user