[sr-dev] git:kamailio_3.0: db_berkeley: get rid of compile warnings

Daniel-Constantin Mierla miconda at gmail.com
Sun May 30 11:49:34 CEST 2010


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun May 30 11:03:22 2010 +0200

db_berkeley: get rid of compile warnings
(cherry picked from commit 8b506f7d9b8eba682d180e458b0e2a278053d29a)

---

 modules/db_berkeley/bdb_lib.c    |    2 +-
 modules/db_berkeley/km_bdb_lib.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/db_berkeley/bdb_lib.c b/modules/db_berkeley/bdb_lib.c
index 66a495b..422d7af 100644
--- a/modules/db_berkeley/bdb_lib.c
+++ b/modules/db_berkeley/bdb_lib.c
@@ -492,7 +492,7 @@ void bdblib_log(int op, bdb_db_p _db_p, bdb_table_p _tp, char* _msg, int len)
 			puts(buf);
 		
 		if ((_tp->logflags & JLOG_SYSLOG) == JLOG_SYSLOG)
-			syslog(LOG_LOCAL6, buf);
+			syslog(LOG_LOCAL6, "%s", buf);
 		
 		if(_tp->fp) 
 		{
diff --git a/modules/db_berkeley/km_bdb_lib.c b/modules/db_berkeley/km_bdb_lib.c
index e1e2cf6..810c331 100644
--- a/modules/db_berkeley/km_bdb_lib.c
+++ b/modules/db_berkeley/km_bdb_lib.c
@@ -532,7 +532,7 @@ void km_bdblib_log(int op, table_p _tp, char* _msg, int len)
 			puts(buf);
 		
 		if ((_tp->logflags & JLOG_SYSLOG) == JLOG_SYSLOG)
-			syslog(LOG_LOCAL6, buf);
+			syslog(LOG_LOCAL6, "%s", buf);
 		
 		if(_tp->fp) 
 		{




More information about the sr-dev mailing list