[sr-dev] git:master: kcore: get_stat_val() returns long

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 30 22:00:22 CEST 2011


Module: sip-router
Branch: master
Commit: be40563d0735486939cb70636a4c86208828f7f5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=be40563d0735486939cb70636a4c86208828f7f5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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

---

 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);
 }
 
 




More information about the sr-dev mailing list