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

apply the modified style

This commit is contained in:
Evan Hunt
2020-02-13 14:44:37 -08:00
parent 0255a97473
commit e851ed0bb5
669 changed files with 35995 additions and 42219 deletions

View File

@@ -17,25 +17,22 @@
#include <dns/callbacks.h>
#include <dns/log.h>
static void
stdio_error_warn_callback(dns_rdatacallbacks_t *, const char *, ...)
static void stdio_error_warn_callback(dns_rdatacallbacks_t *, const char *, ...)
ISC_FORMAT_PRINTF(2, 3);
static void
isclog_error_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
ISC_FORMAT_PRINTF(2, 3);
static void isclog_error_callback(dns_rdatacallbacks_t *callbacks,
const char *fmt, ...) ISC_FORMAT_PRINTF(2, 3);
static void
isclog_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
ISC_FORMAT_PRINTF(2, 3);
static void isclog_warn_callback(dns_rdatacallbacks_t *callbacks,
const char *fmt, ...) ISC_FORMAT_PRINTF(2, 3);
/*
* Private
*/
static void
stdio_error_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
{
stdio_error_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt,
...) {
va_list ap;
UNUSED(callbacks);
@@ -47,8 +44,7 @@ stdio_error_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
}
static void
isclog_error_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
{
isclog_error_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...) {
va_list ap;
UNUSED(callbacks);
@@ -61,8 +57,7 @@ isclog_error_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
}
static void
isclog_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
{
isclog_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...) {
va_list ap;
UNUSED(callbacks);
@@ -76,8 +71,7 @@ isclog_warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...)
}
static void
dns_rdatacallbacks_initcommon(dns_rdatacallbacks_t *callbacks)
{
dns_rdatacallbacks_initcommon(dns_rdatacallbacks_t *callbacks) {
REQUIRE(callbacks != NULL);
callbacks->magic = DNS_CALLBACK_MAGIC;
@@ -94,16 +88,14 @@ dns_rdatacallbacks_initcommon(dns_rdatacallbacks_t *callbacks)
*/
void
dns_rdatacallbacks_init(dns_rdatacallbacks_t *callbacks)
{
dns_rdatacallbacks_init(dns_rdatacallbacks_t *callbacks) {
dns_rdatacallbacks_initcommon(callbacks);
callbacks->error = isclog_error_callback;
callbacks->warn = isclog_warn_callback;
}
void
dns_rdatacallbacks_init_stdio(dns_rdatacallbacks_t *callbacks)
{
dns_rdatacallbacks_init_stdio(dns_rdatacallbacks_t *callbacks) {
dns_rdatacallbacks_initcommon(callbacks);
callbacks->error = stdio_error_warn_callback;
callbacks->warn = stdio_error_warn_callback;