path: root/src/rate_ctr.c
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-04-18 16:45:45 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-04-18 16:46:35 +0200
commita9f526a1abb1d2bfa68c611f1676fea2d89bc9d9 (patch)
treead9ab344d2f63e8ab3fb9e6d0c7ab48e0ca10acc /src/rate_ctr.c
parent334c8e178008f3184382aae6c2cd13b9652169e2 (diff)
stats: Fix the compiler warnings
Do not remove the const, include strings.h for strcmp
Diffstat (limited to 'src/rate_ctr.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rate_ctr.c b/src/rate_ctr.c
index a7fc9496..a0e18148 100644
--- a/src/rate_ctr.c
+++ b/src/rate_ctr.c
@@ -142,10 +142,10 @@ struct rate_ctr_group *rate_ctr_get_group_by_name_idx(const char *name, const un
return NULL;
-struct rate_ctr *rate_ctr_get_by_name(const struct rate_ctr_group *ctrg, const char *name)
+const struct rate_ctr *rate_ctr_get_by_name(const struct rate_ctr_group *ctrg, const char *name)
int i;
- struct rate_ctr_desc *ctr_desc;
+ const struct rate_ctr_desc *ctr_desc;
if (!ctrg->desc)
return NULL;