summaryrefslogtreecommitdiff
path: root/src/openvpn/perf.h
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
commit3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (patch)
treef29063da5bec4caf3853d49a22a09c8619eebd21 /src/openvpn/perf.h
parentd53dba59e78da865c4fe820386ff2f4f76925f3b (diff)
New upstream version 2.4.0upstream/2.4.0
Diffstat (limited to 'src/openvpn/perf.h')
-rw-r--r--src/openvpn/perf.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/openvpn/perf.h b/src/openvpn/perf.h
index c531d9c..f0430a1 100644
--- a/src/openvpn/perf.h
+++ b/src/openvpn/perf.h
@@ -5,7 +5,7 @@
* packet encryption, packet authentication, and
* packet compression.
*
- * Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
+ * Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@ -67,16 +67,24 @@
*/
#define STACK_N 64
-void perf_push (int type);
-void perf_pop (void);
-void perf_output_results (void);
+void perf_push(int type);
-#else
+void perf_pop(void);
-static inline void perf_push (int type) {}
-static inline void perf_pop (void) {}
-static inline void perf_output_results (void) {}
+void perf_output_results(void);
-#endif
+#else /* ifdef ENABLE_PERFORMANCE_METRICS */
-#endif
+static inline void
+perf_push(int type) {
+}
+static inline void
+perf_pop(void) {
+}
+static inline void
+perf_output_results(void) {
+}
+
+#endif /* ifdef ENABLE_PERFORMANCE_METRICS */
+
+#endif /* ifndef PERF_H */