[prev in list] [next in list] [prev in thread] [next in thread]
List: serdev
Subject: [sr-dev] git:jh/33plus DELETED: modules_k/sqlops: use signed int to
From: Juha Heinanen <jh () tutpro ! com>
Date: 2011-09-30 8:53:16
Message-ID: 20110930085316.4F83CEF804E () rimmer ! ryngle ! com
[Download RAW message or body]
Module: sip-router
Branch: jh/33plus DELETED
Commit: 81d63a1737506c0b34e4450b5867ab37ad584faf
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=81d63a1737506c0b34e4450b5867ab37ad584faf
Author: Alex Hermann <alex@speakup.nl>
Committer: Alex Hermann <alex@speakup.nl>
Date: Thu Sep 29 13:03:47 2011 +0200
modules_k/sqlops: use signed int to string conversion for sql.val transformation
integer variables in kamailio are signed by default, conversion to string should be \
signed also.
---
modules_k/sqlops/sql_trans.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/sqlops/sql_trans.c b/modules_k/sqlops/sql_trans.c
index eaf3fb8..2710fc3 100644
--- a/modules_k/sqlops/sql_trans.c
+++ b/modules_k/sqlops/sql_trans.c
@@ -42,7 +42,7 @@ static int _tr_eval_sql_val(pv_value_t *val)
static char _tr_buffer[TR_BUFFER_SIZE];
if(val->flags&PV_TYPE_INT || !(val->flags&PV_VAL_STR)) {
- val->rs.s = int2str(val->ri, &val->rs.len);
+ val->rs.s = sint2str(val->ri, &val->rs.len);
val->flags = PV_VAL_STR;
return 0;
}
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic