[sr-dev] git:master: modules_k/sqlops: cast the query parameter of sql_do_xquery() to the right type.

Alex Hermann alex at speakup.nl
Thu Mar 24 09:59:46 CET 2011


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

Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at speakup.nl>
Date:   Thu Mar 24 09:55:34 2011 +0100

modules_k/sqlops: cast the query parameter of sql_do_xquery() to the right type.

---

 modules_k/sqlops/sqlops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/sqlops/sqlops.c b/modules_k/sqlops/sqlops.c
index a03b7b5..6d04e4b 100644
--- a/modules_k/sqlops/sqlops.c
+++ b/modules_k/sqlops/sqlops.c
@@ -198,7 +198,7 @@ static int sql_query(struct sip_msg *msg, char *dbl, char *query, char *res)
  */
 static int sql_xquery(struct sip_msg *msg, char *dbl, char *query, char *res)
 {
-	return sql_do_xquery(msg, (sql_con_t*)dbl, query, (pv_elem_t*)res);
+	return sql_do_xquery(msg, (sql_con_t*)dbl, (pv_elem_t*)query, (pv_elem_t*)res);
 }
 #endif
 




More information about the sr-dev mailing list