projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
ipvs.c
diff --git
a/src/ipvs.c
b/src/ipvs.c
index
38e4641
..
760aa3c
100644
(file)
--- a/
src/ipvs.c
+++ b/
src/ipvs.c
@@
-37,9
+37,6
@@
#if HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif /* HAVE_ARPA_INET_H */
#if HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif /* HAVE_ARPA_INET_H */
-#if HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif /* HAVE_SYS_SOCKET_H */
#if HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif /* HAVE_NETINET_IN_H */
#if HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif /* HAVE_NETINET_IN_H */
@@
-227,7
+224,8
@@
static int get_ti (struct ip_vs_dest_entry *de, char *ti, size_t size)
return 0;
} /* get_ti */
return 0;
} /* get_ti */
-static void cipvs_submit_connections (char *pi, char *ti, derive_t value)
+static void cipvs_submit_connections (const char *pi, const char *ti,
+ derive_t value)
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
@@
-248,7
+246,7
@@
static void cipvs_submit_connections (char *pi, char *ti, derive_t value)
return;
} /* cipvs_submit_connections */
return;
} /* cipvs_submit_connections */
-static void cipvs_submit_if (c
har *pi, char *t,
char *ti,
+static void cipvs_submit_if (c
onst char *pi, const char *t, const
char *ti,
derive_t rx, derive_t tx)
{
value_t values[2];
derive_t rx, derive_t tx)
{
value_t values[2];
@@
-271,7
+269,8
@@
static void cipvs_submit_if (char *pi, char *t, char *ti,
return;
} /* cipvs_submit_if */
return;
} /* cipvs_submit_if */
-static void cipvs_submit_dest (char *pi, struct ip_vs_dest_entry *de) {
+static void cipvs_submit_dest (const char *pi, struct ip_vs_dest_entry *de)
+{
struct ip_vs_stats_user stats = de->stats;
char ti[DATA_MAX_NAME_LEN];
struct ip_vs_stats_user stats = de->stats;
char ti[DATA_MAX_NAME_LEN];