Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/connect.c | 10 +++++----- src/main.c | 2 +- src/network.c | 2 +- src/util.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/connect.c b/src/connect.c index 3d2be96..e96294d 100644 --- a/src/connect.c +++ b/src/connect.c @@ -39,7 +39,7 @@ virtDBusConnectClose(virtDBusConnect *connect, gboolean deregisterEvents) { - for (gint i = 0; i < VIR_DOMAIN_EVENT_ID_LAST; i += 1) { + for (gint i = 0; i < VIR_DOMAIN_EVENT_ID_LAST; i++) { if (connect->domainCallbackIds[i] >= 0) { if (deregisterEvents) { virConnectDomainEventDeregisterAny(connect->connection, @@ -49,7 +49,7 @@ virtDBusConnectClose(virtDBusConnect *connect, } } - for (gint i = 0; i < VIR_NETWORK_EVENT_ID_LAST; i += 1) { + for (gint i = 0; i < VIR_NETWORK_EVENT_ID_LAST; i++) { if (connect->networkCallbackIds[i] >= 0) { if (deregisterEvents) { virConnectNetworkEventDeregisterAny(connect->connection, @@ -1135,10 +1135,10 @@ virtDBusConnectNew(virtDBusConnect **connectp, g_mutex_init(&connect->lock); - for (gint i = 0; i < VIR_DOMAIN_EVENT_ID_LAST; i += 1) + for (gint i = 0; i < VIR_DOMAIN_EVENT_ID_LAST; i++) connect->domainCallbackIds[i] = -1; - for (gint i = 0; i < VIR_NETWORK_EVENT_ID_LAST; i += 1) + for (gint i = 0; i < VIR_NETWORK_EVENT_ID_LAST; i++) connect->networkCallbackIds[i] = -1; connect->bus = bus; @@ -1170,7 +1170,7 @@ virtDBusConnectListFree(virtDBusConnect **connectList) if (!connectList) return; - for (gint i = 0; connectList[i]; i += 1) + for (gint i = 0; connectList[i]; i++) virtDBusConnectFree(connectList[i]); g_free(connectList); diff --git a/src/main.c b/src/main.c index eb30ef8..c953726 100644 --- a/src/main.c +++ b/src/main.c @@ -54,7 +54,7 @@ virtDBusAcquired(GDBusConnection *connection, virtDBusRegisterData *data = opaque; g_autoptr(GError) error = NULL; - for (gsize i = 0; i < data->ndrivers; i += 1) { + for (gsize i = 0; i < data->ndrivers; i++) { virtDBusConnectNew(&data->connectList[i], connection, data->drivers[i].uri, data->drivers[i].object, &error); diff --git a/src/network.c b/src/network.c index 2fb5ec6..1763eca 100644 --- a/src/network.c +++ b/src/network.c @@ -6,7 +6,7 @@ static void virtDBusNetworkDHCPLeaseListFree(virNetworkDHCPLeasePtr *leases) { - for (gint i = 0; leases[i] != NULL; i += 1) + for (gint i = 0; leases[i] != NULL; i++) virNetworkDHCPLeaseFree(leases[i]); g_free(leases); diff --git a/src/util.c b/src/util.c index 4efa3ec..8b28496 100644 --- a/src/util.c +++ b/src/util.c @@ -208,7 +208,7 @@ virtDBusUtilVirDomainFromBusPath(virConnectPtr connection, void virtDBusUtilVirDomainListFree(virDomainPtr *domains) { - for (gint i = 0; domains[i] != NULL; i += 1) + for (gint i = 0; domains[i] != NULL; i++) virDomainFree(domains[i]); g_free(domains); @@ -241,7 +241,7 @@ virtDBusUtilBusPathForVirNetwork(virNetworkPtr network, void virtDBusUtilVirNetworkListFree(virNetworkPtr *networks) { - for (gint i = 0; networks[i] != NULL; i += 1) + for (gint i = 0; networks[i] != NULL; i++) virNetworkFree(networks[i]); g_free(networks); -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list