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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
