[sr-dev] git:master: snmpstats: update for get_stat_val(type)

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


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Mar 30 21:25:51 2011 +0200

snmpstats: update for get_stat_val(type)

---

 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




More information about the sr-dev mailing list