projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
148fe4f
)
ipvs plugin: Use sizeof() instead of a constant.
author
Sebastian Harl
<sh@tokkee.org>
Thu, 2 Oct 2008 12:54:06 +0000
(14:54 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 3 Oct 2008 20:11:15 +0000
(22:11 +0200)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/ipvs.c
patch
|
blob
|
history
diff --git
a/src/ipvs.c
b/src/ipvs.c
index
31e9741
..
2de28dd
100644
(file)
--- a/
src/ipvs.c
+++ b/
src/ipvs.c
@@
-276,7
+276,7
@@
static void cipvs_submit_dest (char *pi, struct ip_vs_dest_entry *de) {
char ti[DATA_MAX_NAME_LEN];
- if (0 != get_ti (de, ti,
DATA_MAX_NAME_LEN
))
+ if (0 != get_ti (de, ti,
sizeof (ti)
))
return;
cipvs_submit_connections (pi, ti, stats.conns);
@@
-294,7
+294,7
@@
static void cipvs_submit_service (struct ip_vs_service_entry *se)
int i = 0;
- if (0 != get_pi (se, pi,
DATA_MAX_NAME_LEN
))
+ if (0 != get_pi (se, pi,
sizeof (pi)
))
return;
cipvs_submit_connections (pi, NULL, stats.conns);