[sr-dev] git:kamailio_3.0: core: cfg parser: allow negative numbers in modparams

Daniel-Constantin Mierla miconda at gmail.com
Wed May 5 20:07:19 CEST 2010


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Mar 19 14:47:46 2010 +0100

core: cfg parser: allow negative numbers in modparams
(cherry picked from commit d4b2eee2e4f0e5a1fe4b5ea17d78d51a6fab70c7)

---

 cfg.y |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cfg.y b/cfg.y
index 60ce707..7492b7e 100644
--- a/cfg.y
+++ b/cfg.y
@@ -1604,7 +1604,7 @@ module_stm:
 			 yyerror("Can't set module parameter");
 		}
 	}
-	| MODPARAM LPAREN STRING COMMA STRING COMMA NUMBER RPAREN {
+	| MODPARAM LPAREN STRING COMMA STRING COMMA intno RPAREN {
 	#ifdef SHM_MEM
 		if (!shm_initialized() && init_shm()<0) {
 			yyerror("Can't initialize shared memory");




More information about the sr-dev mailing list