virt plugin: make indentation explicit
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 20 Jan 2016 08:47:31 +0000 (09:47 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 20 Jan 2016 08:47:31 +0000 (09:47 +0100)
Fixes this warning raised by gcc-6's new "misleading-indentation"
option:

```
virt.c: In function 'lv_init':
virt.c:331:2: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
  return 0;
  ^~~~~~

virt.c:328:5: note: ...this 'if' clause, but it is not
     if (virInitialize () != 0)
     ^~
```

src/libvirt.c

index 6a397db..4cbe38d 100644 (file)
@@ -259,8 +259,8 @@ lv_init (void)
 {
     if (virInitialize () != 0)
         return -1;
-
-       return 0;
+    else
+        return 0;
 }
 
 static int