You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2022/06/08 20:36:49 UTC

[qpid-proton] 08/08: NO-JIRA: Use C99 syntax for default logger initialization

This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit d1bcaa3a9f3100609fe55336ca1f18d3831acaa1
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Tue Jun 7 17:44:14 2022 -0400

    NO-JIRA: Use C99 syntax for default logger initialization
---
 c/src/core/logger.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/c/src/core/logger.c b/c/src/core/logger.c
index c4042d4fe..e81dc172c 100644
--- a/c/src/core/logger.c
+++ b/c/src/core/logger.c
@@ -37,11 +37,10 @@ static void pni_default_log_sink(intptr_t logger, pn_log_subsystem_t subsystem,
 }
 
 static pn_logger_t the_default_logger = {
-  pni_default_log_sink,
-  (intptr_t) &the_default_logger,
-  NULL,
-  PN_SUBSYSTEM_ALL,
-  PN_LEVEL_CRITICAL
+  .sink = pni_default_log_sink,
+  .sink_context = (intptr_t) &the_default_logger,
+  .sub_mask = PN_SUBSYSTEM_ALL,
+  .sev_mask = PN_LEVEL_CRITICAL
 };
 
 void pni_logger_init(pn_logger_t *logger)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org