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

@@ -11,25 +11,26 @@
/*! \file */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h> /* Non-portable. */
#include <sys/stat.h> /* Non-portable. */
#include <isc/fsaccess.h>
#include <isc/print.h>
#include <isc/result.h>
#include <sys/stat.h> /* Non-portable. */
#include <sys/types.h> /* Non-portable. */
#define PATH "/tmp/fsaccess"
int
main(void) {
main(void)
{
isc_fsaccess_t access;
isc_result_t result;
FILE *fp;
int n;
isc_result_t result;
FILE * fp;
int n;
n = remove(PATH);
if (n != 0 && errno != ENOENT) {
@@ -50,8 +51,7 @@ main(void) {
access = 0;
isc_fsaccess_add(ISC_FSACCESS_OWNER | ISC_FSACCESS_GROUP,
ISC_FSACCESS_READ | ISC_FSACCESS_WRITE,
&access);
ISC_FSACCESS_READ | ISC_FSACCESS_WRITE, &access);
printf("fsaccess=%u\n", access);