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

@@ -16,20 +16,19 @@
#include <dns/log.h>
#include <dns/result.h>
#include <pk11/pk11.h>
#include <pk11/internal.h>
#include "dst_internal.h"
#include "dst_pkcs11.h"
#include <pk11/internal.h>
#include <pk11/pk11.h>
isc_result_t
dst__pkcs11_toresult(const char *funcname, const char *file, int line,
isc_result_t fallback, CK_RV rv)
{
isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL,
DNS_LOGMODULE_CRYPTO, ISC_LOG_WARNING,
"%s:%d: %s: Error = 0x%.8lX\n",
file, line, funcname, rv);
isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_CRYPTO,
ISC_LOG_WARNING, "%s:%d: %s: Error = 0x%.8lX\n", file,
line, funcname, rv);
if (rv == CKR_HOST_MEMORY)
return (ISC_R_NOMEMORY);
return (fallback);