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

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 4 21:58:33 CEST 2011


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

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




More information about the sr-dev mailing list