Module: sip-router
Branch: master
Commit: 67436c8fd301c1b59d0f58ff0f09c4f227865a5a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=67436c8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Mar 13 23:03:37 2011 +0100
core: accept signed int for fixup FPARAM_INT
---
sr_module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sr_module.c b/sr_module.c
index f975062..1970395 100644
--- a/sr_module.c
+++ b/sr_module.c
@@ -1038,7 +1038,7 @@ int fix_param(int type, void** param)
{
fparam_t* p;
str name, s;
- unsigned int num;
+ int num;
int err;
p = (fparam_t*)pkg_malloc(sizeof(fparam_t));
@@ -1064,7 +1064,7 @@ int fix_param(int type, void** param)
case FPARAM_INT:
s.s = (char*)*param;
s.len = strlen(s.s);
- err = str2int(&s, &num);
+ err = str2sint(&s, &num);
if (err == 0) {
p->v.i = (int)num;
} else {