From cd09b24e19e5865a08ace989a367ec5c71ca2c1a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 3 Apr 2008 22:03:14 +0000 Subject: Fixed link error to pj_log() in libSRTP if PJ_LOG_MAX_LEVEL is set to zero (thanks Michael CHRISTOPHER) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1907 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/srtp/pjlib/srtp_err.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'third_party') diff --git a/third_party/srtp/pjlib/srtp_err.c b/third_party/srtp/pjlib/srtp_err.c index 50542407..8a92c56b 100644 --- a/third_party/srtp/pjlib/srtp_err.c +++ b/third_party/srtp/pjlib/srtp_err.c @@ -32,12 +32,14 @@ void err_report(int priority, char *format, ...) { va_list args; +#if PJ_LOG_MAX_LEVEL >= 1 if (priority <= err_level) { va_start(args, format); pj_log("libsrtp", priority, format, args); va_end(args); } +#endif } void -- cgit v1.2.3