projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chrony plugin: constify 2 function arguments
[collectd.git]
/
src
/
chrony.c
diff --git
a/src/chrony.c
b/src/chrony.c
index
6fcea70
..
2bfba2f
100644
(file)
--- a/
src/chrony.c
+++ b/
src/chrony.c
@@
-674,7
+674,7
@@
ntohf(tFloat p_float)
static void
static void
-chrony_push_data(c
har *p_type,
char *p_type_inst, double p_value)
+chrony_push_data(c
onst char *p_type, const
char *p_type_inst, double p_value)
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
@@
-705,7
+705,7
@@
chrony_push_data(char *p_type, char *p_type_inst, double p_value)
static void
static void
-chrony_push_data_valid(c
har *p_type,
char *p_type_inst, const int p_is_valid,
+chrony_push_data_valid(c
onst char *p_type, const
char *p_type_inst, const int p_is_valid,
double p_value)
{
/* Push real value if p_is_valid is true, push NAN if p_is_valid is not true (idea from ntp plugin) */
double p_value)
{
/* Push real value if p_is_valid is true, push NAN if p_is_valid is not true (idea from ntp plugin) */