]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
logger.h: Fix build when AST_DEVMODE is not defined.
authorArtem Umerov <artem1999.umerov@gmail.com>
Mon, 13 Jan 2025 16:28:45 +0000 (19:28 +0300)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 15 Jan 2025 21:28:32 +0000 (21:28 +0000)
Resolves: #1058

include/asterisk/logger.h
res/res_pjsip_authenticator_digest.c

index 7f4c2adee989484ace18a569d8387eb979327fae..3b7823f2b87535b0b46229ca1e555127508edfff 100644 (file)
@@ -897,7 +897,7 @@ unsigned long _ast_trace_dec_indent(void);
        __type __var; \
        ast_trace(level, "--> Calling %s\n", #__funcname); \
        __var = __funcname(__VA_ARGS__); \
-       ast_trace(level, "<-- Return from %s\n", #__funcname) \
+       ast_trace(level, "<-- Return from %s\n", #__funcname); \
        __var; \
 })
 
@@ -1015,7 +1015,7 @@ unsigned long _ast_trace_dec_indent(void);
        __funcname(__VA_ARGS__)
 
 #define SCOPE_CALL_WITH_RESULT(level, __var, __funcname, ...) \
-       __var = __funcname(__VA_ARGS__)
+       __funcname(__VA_ARGS__)
 
 #define SCOPE_CALL_WITH_INT_RESULT(level, __funcname, ...) \
        __funcname(__VA_ARGS__)
index a97052562a40e2fc83b2147e8eee90a1ba89806d..6d7fdab2b82e07b3029bdb4ee99edc1178290a40 100644 (file)
@@ -632,7 +632,7 @@ static enum ast_sip_check_auth_result digest_check_auth(struct ast_sip_endpoint
                 * sending challenges. We don't need to verify them.
                 */
                if (auth->type == AST_SIP_AUTH_TYPE_ARTIFICIAL) {
-                       ast_trace(-1, "%s:%s:%s: Skipping verification on artificial endpoint\n", endpoint_id, auth_id, src_name )
+                       ast_trace(-1, "%s:%s:%s: Skipping verification on artificial endpoint\n", endpoint_id, auth_id, src_name);
                        verify_res[idx] = AUTH_NOAUTH;
                } else {
                        verify_res[idx] = SCOPE_CALL_WITH_RESULT(-1, int, verify, endpoint_id, auth, rdata, tdata->pool);