projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f963ff
)
treewide: fix a few missing include guards
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 13 Aug 2019 09:45:08 +0000
(11:45 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 13 Aug 2019 09:57:11 +0000
(11:57 +0200)
found with LGTM
src/daemon/utils_random.h
patch
|
blob
|
history
src/utils/latency/latency.h
patch
|
blob
|
history
src/utils/proc_pids/proc_pids.h
patch
|
blob
|
history
src/utils_tail_match.h
patch
|
blob
|
history
diff --git
a/src/daemon/utils_random.h
b/src/daemon/utils_random.h
index
75bdc12
..
ff0022e
100644
(file)
--- a/
src/daemon/utils_random.h
+++ b/
src/daemon/utils_random.h
@@
-24,6
+24,9
@@
* Florian Forster <octo at collectd.org>
**/
* Florian Forster <octo at collectd.org>
**/
+#ifndef UTILS_RANDOM_H
+#define UTILS_RANDOM_H 1
+
/**
* Returns a random double value in the range [0..1), i.e. excluding 1.
*
/**
* Returns a random double value in the range [0..1), i.e. excluding 1.
*
@@
-46,3
+49,5
@@
uint32_t cdrand_u(void);
* outside the intended range. This function is thread- and reentrant-safe.
*/
long cdrand_range(long min, long max);
* outside the intended range. This function is thread- and reentrant-safe.
*/
long cdrand_range(long min, long max);
+
+#endif /* !UTILS_RANDOM_H */
diff --git
a/src/utils/latency/latency.h
b/src/utils/latency/latency.h
index
9d878da
..
6c2c8ae
100644
(file)
--- a/
src/utils/latency/latency.h
+++ b/
src/utils/latency/latency.h
@@
-24,6
+24,9
@@
* Florian Forster <ff at octo.it>
**/
* Florian Forster <ff at octo.it>
**/
+#ifndef UTILS_LATENCY_LATENCY_H
+#define UTILS_LATENCY_LATENCY_H 1
+
#include "collectd.h"
#include "utils_time.h"
#include "collectd.h"
#include "utils_time.h"
@@
-61,3
+64,5
@@
cdtime_t latency_counter_get_percentile(latency_counter_t *lc, double percent);
*/
double latency_counter_get_rate(const latency_counter_t *lc, cdtime_t lower,
cdtime_t upper, const cdtime_t now);
*/
double latency_counter_get_rate(const latency_counter_t *lc, cdtime_t lower,
cdtime_t upper, const cdtime_t now);
+
+#endif /* UTILS_LATENCY_LATENCY_H */
diff --git
a/src/utils/proc_pids/proc_pids.h
b/src/utils/proc_pids/proc_pids.h
index
8b19497
..
9170398
100644
(file)
--- a/
src/utils/proc_pids/proc_pids.h
+++ b/
src/utils/proc_pids/proc_pids.h
@@
-27,6
+27,9
@@
* Michał Aleksiński <michalx.aleksinski@intel.com>
**/
* Michał Aleksiński <michalx.aleksinski@intel.com>
**/
+#ifndef UTILS_PROC_PIDS_PROC_PIDS_H
+#define UTILS_PROC_PIDS_PROC_PIDS_H 1
+
#include <dirent.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/types.h>
@@
-224,3
+227,5
@@
int proc_pids_update(const char *procfs_path, proc_pids_t *proc_pids[],
* 0 on success. -1 on error.
*/
int proc_pids_free(proc_pids_t *proc_pids[], size_t proc_pids_num);
* 0 on success. -1 on error.
*/
int proc_pids_free(proc_pids_t *proc_pids[], size_t proc_pids_num);
+
+#endif /* UTILS_PROC_PIDS_PROC_PIDS_H */
diff --git
a/src/utils_tail_match.h
b/src/utils_tail_match.h
index
43d3fcf
..
771c241
100644
(file)
--- a/
src/utils_tail_match.h
+++ b/
src/utils_tail_match.h
@@
-33,6
+33,9
@@
* regular expressions.
*/
* regular expressions.
*/
+#ifndef UTILS_TAIL_MATCH_H
+#define UTILS_TAIL_MATCH_H 1
+
#include "utils/latency/latency_config.h"
#include "utils/match/match.h"
#include "utils/latency/latency_config.h"
#include "utils/match/match.h"
@@
-133,3
+136,5
@@
int tail_match_add_match_simple(cu_tail_match_t *obj, const char *regex,
* Zero on success, nonzero on failure.
*/
int tail_match_read(cu_tail_match_t *obj);
* Zero on success, nonzero on failure.
*/
int tail_match_read(cu_tail_match_t *obj);
+
+#endif /* UTILS_TAIL_MATCH_H */