[sr-dev] git:master: core: cfg parser: allow negative numbers in modparams

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Mar 19 15:31:04 CET 2010


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

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

core: cfg parser: allow negative numbers in modparams

---

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

diff --git a/cfg.y b/cfg.y
index 8bda2fc..a9350ec 100644
--- a/cfg.y
+++ b/cfg.y
@@ -1631,7 +1631,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