Module: sip-router
Branch: 3.1
Commit: a81157dd0a98d329cc6be4caadc4c46dae17b07a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a81157d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Mar 30 21:24:54 2011 +0200
pv: cast the value of statistics for PV int value
(cherry picked from commit d28a08034e2fb9b33d9c5c3655a0cb24e77d6d65)
---
modules_k/pv/pv_stats.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules_k/pv/pv_stats.c b/modules_k/pv/pv_stats.c
index 85aaa7c..c8a1f29 100644
--- a/modules_k/pv/pv_stats.c
+++ b/modules_k/pv/pv_stats.c
@@ -49,6 +49,7 @@ int pv_get_stat(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
param->pvn.u.isname.name.s.len, param->pvn.u.isname.name.s.s);
return pv_get_null(msg, param, res);
}
- return pv_get_uintval(msg, param, res, get_stat_val(stat));
+ return pv_get_uintval(msg, param, res,
+ (unsigned int)get_stat_val(stat));
}