[collectd] [PATCH] ipvs plugin: Use sizeof() instead of a constant.
Sebastian Harl
sh at tokkee.org
Thu Oct 2 14:54:06 CEST 2008
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
src/ipvs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ipvs.c b/src/ipvs.c
index 10c4d15..85e65d2 100644
--- a/src/ipvs.c
+++ b/src/ipvs.c
@@ -280,7 +280,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);
@@ -298,7 +298,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);
--
1.6.0.1.216.g1b23a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20081002/00591e0f/attachment.pgp
More information about the collectd
mailing list