From: squidadm Date: Thu, 8 Dec 2022 02:50:15 +0000 (+0000) Subject: Source Format Enforcement (#1201) X-Git-Tag: SQUID_6_0_1~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41b1056534b394943beb75ae3233fbe0da1a9c7f;p=thirdparty%2Fsquid.git Source Format Enforcement (#1201) --- diff --git a/compat/krb5.h b/compat/krb5.h index b3e1338893..962853327f 100644 --- a/compat/krb5.h +++ b/compat/krb5.h @@ -32,15 +32,15 @@ # define KERBEROS_APPLE_DEPRECATED(x) # endif # if HAVE_BROKEN_HEIMDAL_KRB5_H && defined(__cplusplus) - extern "C" { +extern "C" { # include - } +} # elif HAVE_BROKEN_SOLARIS_KRB5_H && defined(__cplusplus) # define KRB5INT_BEGIN_DECLS extern "C" { # define KRB5INT_END_DECLS - extern "C" { +extern "C" { # include - /* broken Solaris krb5.h contains the closing } */ + /* broken Solaris krb5.h contains the closing } */ # else # include # endif diff --git a/src/ConfigParser.cc b/src/ConfigParser.cc index 5dce42b5fe..d8a426ace3 100644 --- a/src/ConfigParser.cc +++ b/src/ConfigParser.cc @@ -514,7 +514,7 @@ ConfigParser::cachePeer(const char *peerNameTokenDescription) return *p; throw TextException(ToSBuf("Cannot find a previously declared cache_peer referred to by ", - peerNameTokenDescription, " as ", name), Here()); + peerNameTokenDescription, " as ", name), Here()); } throw TextException(ToSBuf("Missing ", peerNameTokenDescription), Here()); diff --git a/src/Makefile.am b/src/Makefile.am index 99738cd908..fb3bd3009b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1445,11 +1445,11 @@ tests_testStore_SOURCES = \ tests/stub_libformat.cc \ tests/stub_libsecurity.cc \ tests/stub_libsslsquid.cc \ - tests/stub_neighbors.cc \ log/access_log.h \ mem_node.cc \ tests/stub_mime.cc \ mime.h \ + tests/stub_neighbors.cc \ refresh.cc \ refresh.h \ repl_modules.h \ @@ -1693,8 +1693,8 @@ tests_testACLMaxUserIP_SOURCES = \ tests/testACLMaxUserIP.cc \ tests/testACLMaxUserIP.h nodist_tests_testACLMaxUserIP_SOURCES = \ - ConfigParser.cc \ tests/stub_CachePeer.cc \ + ConfigParser.cc \ tests/stub_HelperChildConfig.cc \ tests/stub_HttpHeader.cc \ tests/stub_HttpRequest.cc \ @@ -2022,8 +2022,8 @@ tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL) check_PROGRAMS += tests/testHttpReply tests_testHttpReply_SOURCES = \ - ConfigParser.cc \ tests/stub_CachePeer.cc \ + ConfigParser.cc \ tests/stub_ETag.cc \ tests/stub_HelperChildConfig.cc \ HttpBody.cc \ @@ -2088,10 +2088,10 @@ tests_testHttpReply_SOURCES = \ tests/stub_libmgr.cc \ tests/stub_libsecurity.cc \ tests/stub_libsslsquid.cc \ - tests/stub_neighbors.cc \ log/access_log.h \ mime_header.cc \ mime_header.h \ + tests/stub_neighbors.cc \ repl_modules.h \ tests/stub_store.cc \ tests/stub_store_stats.cc \ diff --git a/src/ipc.cc b/src/ipc.cc index 25a97898c0..1d24732c69 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -96,10 +96,10 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name if (type == IPC_TCP_SOCKET) { crfd = cwfd = comm_open_listener(SOCK_STREAM, - 0, - local_addr, - COMM_NOCLOEXEC, - name); + 0, + local_addr, + COMM_NOCLOEXEC, + name); prfd = pwfd = comm_open(SOCK_STREAM, 0, /* protocol */ local_addr, diff --git a/src/ipc_win32.cc b/src/ipc_win32.cc index 261f942fd6..aa0f1f7639 100644 --- a/src/ipc_win32.cc +++ b/src/ipc_win32.cc @@ -128,10 +128,10 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name if (type == IPC_TCP_SOCKET) { crfd = cwfd = comm_open_listener(SOCK_STREAM, - IPPROTO_TCP, - local_addr, - COMM_NOCLOEXEC, - name); + IPPROTO_TCP, + local_addr, + COMM_NOCLOEXEC, + name); prfd = pwfd = comm_open(SOCK_STREAM, IPPROTO_TCP, /* protocol */ local_addr,