summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c613b5)
raw | patch | inline | side by side (parent: 6c613b5)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 29 Feb 2016 22:26:00 +0000 (23:26 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 29 Feb 2016 22:26:00 +0000 (23:26 +0100) |
src/utils_latency.c | patch | blob | history | |
src/utils_latency.h | patch | blob | history |
diff --git a/src/utils_latency.c b/src/utils_latency.c
index a21b7e8deaabbffa77f4922cb47c58860fe761ca..efca6d296b8f743514e023e177325017bdc8d6e5 100644 (file)
--- a/src/utils_latency.c
+++ b/src/utils_latency.c
* Florian Forster <ff at octo.it>
**/
+#include <math.h>
+#include <limits.h>
+
#include "collectd.h"
#include "plugin.h"
#include "utils_latency.h"
#include "common.h"
-#include <math.h>
-#include <limits.h>
-
#ifndef LLONG_MAX
# define LLONG_MAX 9223372036854775807LL
#endif
@@ -117,7 +117,7 @@ static void change_bin_width (latency_counter_t *lc, cdtime_t latency) /* {{{ */
CDTIME_T_TO_DOUBLE (new_bin_width));
} /* }}} void change_bin_width */
-latency_counter_t *latency_counter_create () /* {{{ */
+latency_counter_t *latency_counter_create (void) /* {{{ */
{
latency_counter_t *lc;
diff --git a/src/utils_latency.h b/src/utils_latency.h
index 3787c779434c191957fe60a8fefae1063567e9a2..e7c2fc36fcf4eddbe88f3d0211166040b1230fcc 100644 (file)
--- a/src/utils_latency.h
+++ b/src/utils_latency.h
struct latency_counter_s;
typedef struct latency_counter_s latency_counter_t;
-latency_counter_t *latency_counter_create ();
+latency_counter_t *latency_counter_create (void);
void latency_counter_destroy (latency_counter_t *lc);
void latency_counter_add (latency_counter_t *lc, cdtime_t latency);