From: Marc Fournier Date: Wed, 20 Jan 2016 08:47:31 +0000 (+0100) Subject: virt plugin: make indentation explicit X-Git-Tag: collectd-5.5.1^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=376667a354fe85443c5214e2039d71a13f4fdebd;p=collectd.git virt plugin: make indentation explicit 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) ^~ ``` --- diff --git a/src/libvirt.c b/src/libvirt.c index 6a397db3..4cbe38d2 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -259,8 +259,8 @@ lv_init (void) { if (virInitialize () != 0) return -1; - - return 0; + else + return 0; } static int