[libvirt] [dbus PATCH 2/9] Use ++ operator instead of += in for loop

Ján Tomko jtomko at redhat.com
Mon May 7 11:55:17 UTC 2018


On Mon, May 07, 2018 at 12:06:29PM +0200, Pavel Hrdina wrote:
>Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>---
> 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,

Thank you!

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180507/5e3abeb4/attachment-0001.sig>


More information about the libvir-list mailing list