[build-fix PATCH] util: virfile: Fix indentation of preprocessor directives

Peter Krempa posted 1 patch 2 years, 7 months ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/47d6d1855c1cd84e8cee451125f7e89306d4f885.1648466080.git.pkrempa@redhat.com
src/util/virfile.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[build-fix PATCH] util: virfile: Fix indentation of preprocessor directives
Posted by Peter Krempa 2 years, 7 months ago
stderr:
cppi: /home/pipo/libvirt/src/util/virfile.c: line 205: not properly indented
cppi: /home/pipo/libvirt/src/util/virfile.c: line 243: not properly indented
cppi: /home/pipo/libvirt/src/util/virfile.c: line 249: not properly indented
build-aux/syntax-check.mk: incorrect preprocessor indentation
make: *** [/home/pipo/libvirt/build-aux/syntax-check.mk:565: sc_preprocessor_indentation] Error 1

Fixes: c61d1e9ba0a0bec18fdb0bdd485060dc27a4e5cc
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---

Pushed.

 src/util/virfile.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/util/virfile.c b/src/util/virfile.c
index 6f2af35201..12b359d550 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -202,7 +202,7 @@ struct _virFileWrapperFd {

 #ifndef WIN32

-#ifdef __linux__
+# ifdef __linux__

 /**
  * virFileWrapperSetPipeSize:
@@ -240,13 +240,13 @@ virFileWrapperSetPipeSize(int fd)
              g_strerror(errno));
 }

-#else /* !__linux__ */
+# else /* !__linux__ */
 static void
 virFileWrapperSetPipeSize(int fd G_GNUC_UNUSED)
 {
     return;
 }
-#endif /* !__linux__ */
+# endif /* !__linux__ */


 /**
-- 
2.35.1