Module: sip-router Branch: 3.1 Commit: e193da6e7ebf8dacbf9cbbef785856e69023acaf URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e193da6e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Mar 30 21:25:51 2011 +0200
snmpstats: update for get_stat_val(type) (cherry picked from commit 03087fb98241680b2e2cc8c1d63dbe0d47d8d891)
---
modules_k/snmpstats/utilities.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/snmpstats/utilities.c b/modules_k/snmpstats/utilities.c index 1880156..0b596a7 100644 --- a/modules_k/snmpstats/utilities.c +++ b/modules_k/snmpstats/utilities.c @@ -103,9 +103,9 @@ int stringHandlerSanityCheck( modparam_t type, void *val, char *parameterName) * return the value of the statistic denoted with statName, or zero if the * statistic was not found. */ -int get_statistic(char *statName) +int get_statistic(char *statName) { - int result = 0; + long result = 0;
str theStr;
@@ -120,7 +120,7 @@ int get_statistic(char *statName) result = get_stat_val(theVar); }
- return result; + return (int)result; }
/*! Returns a pointer to an SNMP DateAndTime OCTET STRING representation of the