Merge branch '46-just-use-clang-format-to-reformat-sources' into 'master'

Reformat source code with clang-format

Closes #46

See merge request isc-projects/bind9!2156

(cherry picked from commit 7099e79a9b)

4c3b063e Import Linux kernel .clang-format with small modifications
f50b1e06 Use clang-format to reformat the source files
11341c76 Update the definition files for Windows
df6c1f76 Remove tkey_test (which is no-op anyway)
This commit is contained in:
Ondřej Surý
2020-02-12 14:33:32 +00:00
parent dbe15330fe
commit c931d8e417
974 changed files with 75952 additions and 74434 deletions

View File

@@ -19,13 +19,14 @@
#include <isc/util.h>
int
main(int argc, char **argv) {
isc_mem_t *mctx = NULL;
main(int argc, char **argv)
{
isc_mem_t * mctx = NULL;
isc_interfaceiter_t *iter = NULL;
isc_interface_t ifdata;
isc_result_t result;
const char * res;
char buf[128];
isc_interface_t ifdata;
isc_result_t result;
const char * res;
char buf[128];
UNUSED(argc);
UNUSED(argv);
@@ -49,8 +50,7 @@ main(int argc, char **argv) {
sizeof(buf));
if (ifdata.address.zone != 0)
fprintf(stdout, "address = %s (zone %u)\n",
res == NULL ? "BAD" : res,
ifdata.address.zone);
res == NULL ? "BAD" : res, ifdata.address.zone);
else
fprintf(stdout, "address = %s\n",
res == NULL ? "BAD" : res);
@@ -60,8 +60,8 @@ main(int argc, char **argv) {
fprintf(stdout, "netmask = %s\n", res == NULL ? "BAD" : res);
INSIST(ifdata.netmask.family == ifdata.af);
if ((ifdata.flags & INTERFACE_F_POINTTOPOINT) != 0) {
res = inet_ntop(ifdata.af, &ifdata.dstaddress.type,
buf, sizeof(buf));
res = inet_ntop(ifdata.af, &ifdata.dstaddress.type, buf,
sizeof(buf));
fprintf(stdout, "dstaddress = %s\n",
res == NULL ? "BAD" : res);
@@ -96,8 +96,7 @@ main(int argc, char **argv) {
sizeof(buf));
if (ifdata.address.zone != 0)
fprintf(stdout, "address = %s (zone %u)\n",
res == NULL ? "BAD" : res,
ifdata.address.zone);
res == NULL ? "BAD" : res, ifdata.address.zone);
else
fprintf(stdout, "address = %s\n",
res == NULL ? "BAD" : res);
@@ -107,8 +106,8 @@ main(int argc, char **argv) {
fprintf(stdout, "netmask = %s\n", res == NULL ? "BAD" : res);
INSIST(ifdata.netmask.family == ifdata.af);
if ((ifdata.flags & INTERFACE_F_POINTTOPOINT) != 0) {
res = inet_ntop(ifdata.af, &ifdata.dstaddress.type,
buf, sizeof(buf));
res = inet_ntop(ifdata.af, &ifdata.dstaddress.type, buf,
sizeof(buf));
fprintf(stdout, "dstaddress = %s\n",
res == NULL ? "BAD" : res);
@@ -122,7 +121,7 @@ main(int argc, char **argv) {
}
}
isc_interfaceiter_destroy(&iter);
cleanup:
cleanup:
isc_mem_destroy(&mctx);
return (0);