From b9b488b6d31284e327218f7ffc83f2f2f1d042dd Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 4 Jan 2024 17:06:15 +0100 Subject: [PATCH] - Remove unneeded newlines and improve indentation in remote control code. --- daemon/remote.c | 8 ++++---- doc/Changelog | 4 ++++ iterator/iter_fwd.c | 1 - iterator/iter_hints.c | 1 - 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/daemon/remote.c b/daemon/remote.c index 3eb711ce6..7945579ff 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -3181,10 +3181,10 @@ execute_cmd(struct daemon_remote* rc, RES* ssl, char* cmd, do_flush_bogus(ssl, worker); } else if(cmdcmp(p, "flush_negative", 14)) { do_flush_negative(ssl, worker); - } else if(cmdcmp(p, "rpz_enable", 10)) { - do_rpz_enable(ssl, worker, skipwhite(p+10)); - } else if(cmdcmp(p, "rpz_disable", 11)) { - do_rpz_disable(ssl, worker, skipwhite(p+11)); + } else if(cmdcmp(p, "rpz_enable", 10)) { + do_rpz_enable(ssl, worker, skipwhite(p+10)); + } else if(cmdcmp(p, "rpz_disable", 11)) { + do_rpz_disable(ssl, worker, skipwhite(p+11)); } else { (void)ssl_printf(ssl, "error unknown command '%s'\n", p); } diff --git a/doc/Changelog b/doc/Changelog index dbc625f00..5cf733e14 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +4 January 2024: Wouter + - Remove unneeded newlines and improve indentation in remote control + code. + 3 January 2024: Wouter - Merge #980: DoH: reject non-h2 early. To fix #979: Improve errors for non-HTTP/2 DoH clients. diff --git a/iterator/iter_fwd.c b/iterator/iter_fwd.c index 151372912..c4b241129 100644 --- a/iterator/iter_fwd.c +++ b/iterator/iter_fwd.c @@ -523,4 +523,3 @@ forwards_delete_stub_hole(struct iter_forwards* fwd, uint16_t c, uint8_t* nm) fwd_zone_free(z); fwd_init_parents(fwd); } - diff --git a/iterator/iter_hints.c b/iterator/iter_hints.c index 6b56daaf1..4f86f3676 100644 --- a/iterator/iter_hints.c +++ b/iterator/iter_hints.c @@ -560,4 +560,3 @@ hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm) hints_stub_free(z); name_tree_init_parents(&hints->tree); } - -- 2.47.3