]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Apply clang-format to src/nfs.c
authorDagobert Michelsen <dam@opencsw.org>
Tue, 18 Feb 2020 15:56:21 +0000 (16:56 +0100)
committerDagobert Michelsen <dam@opencsw.org>
Tue, 18 Feb 2020 15:56:21 +0000 (16:56 +0100)
src/nfs.c

index b7c74df916aae12fad3897c41146cd49d01d4f1b..cbb4d1df97e3361afaadc364bda46225e1d343a2 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
 #include "utils/common/common.h"
 
 #if KERNEL_NETBSD
+// clang-format off
+/*
+ * Explicit order is required or it will not compile, see GitHub issue #3333
+ */
 #include <sys/param.h>
 #include <sys/mount.h>
 #include <sys/sysctl.h>
 #include <nfs/rpcv2.h>
 #include <nfs/nfsproto.h>
 #include <nfs/nfs.h>
+// clang-format on
 #endif
 
 #if HAVE_KSTAT_H
@@ -633,7 +638,7 @@ static int nfs_read(void) {
 
   return 0;
 }
-/* #endif KERNEL_NETBSD */
+  /* #endif KERNEL_NETBSD */
 
 #elif HAVE_LIBKSTAT
 static int nfs_read(void) {