Module: sip-router
Branch: 3.1
Commit: e752430554d7e0b222561709de95f9c98ef0f7e8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e752430…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Mar 30 21:23:10 2011 +0200
kcore: get_stat_val() returns long
- the statistic value is long, the wrapper to get its value returns now
long as well
- reported by Paul Pankhurst, paul (at)
crocodile-rcs.com
(cherry picked from commit be40563d0735486939cb70636a4c86208828f7f5)
---
lib/kcore/kstats_wrapper.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/kcore/kstats_wrapper.h b/lib/kcore/kstats_wrapper.h
index 1c9559b..80cc9f8 100644
--- a/lib/kcore/kstats_wrapper.h
+++ b/lib/kcore/kstats_wrapper.h
@@ -76,11 +76,11 @@ inline static stat_var* get_stat(str *name)
-inline static unsigned int get_stat_val(stat_var *v)
+inline static unsigned long get_stat_val(stat_var *v)
{
counter_handle_t h;
h.id = (unsigned short)(unsigned long)v;
- return counter_get_val(h);
+ return (unsigned long)counter_get_val(h);
}