2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

dns_message_logfmtpacket(): drop 'style' parameter

Both existing callers of the dns_message_logfmtpacket() function set the
argument passed as 'style' to &dns_master_style_comment.  To simplify
these call sites, drop the 'style' parameter from the prototype for
dns_message_logfmtpacket() and use a fixed value of
&dns_master_style_comment in the function's body instead.
This commit is contained in:
Michał Kępień
2024-12-31 05:40:48 +01:00
parent 064b2c6889
commit 05d69bd7a4
3 changed files with 6 additions and 10 deletions

View File

@@ -4741,12 +4741,11 @@ void
dns_message_logfmtpacket(dns_message_t *message, const char *description,
const isc_sockaddr_t *address,
isc_logcategory_t category, isc_logmodule_t module,
const dns_master_style_t *style, int level,
isc_mem_t *mctx) {
int level, isc_mem_t *mctx) {
REQUIRE(address != NULL);
logfmtpacket(message, description, address, category, module, style,
level, mctx);
logfmtpacket(message, description, address, category, module,
&dns_master_style_comment, level, mctx);
}
static void