From: Automatic source maintenance Date: Thu, 17 Dec 2009 01:13:16 +0000 (-0700) Subject: SourceFormat Enforcement X-Git-Tag: SQUID_3_2_0_1~508 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10044c9be8c22837a98d33ecf5976cf41450d421;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/src/HelperChildConfig.cc b/src/HelperChildConfig.cc index 8986f629b4..9cd5038680 100644 --- a/src/HelperChildConfig.cc +++ b/src/HelperChildConfig.cc @@ -33,7 +33,8 @@ HelperChildConfig::operator =(const HelperChildConfig &rhs) } const int -HelperChildConfig::needNew() const { +HelperChildConfig::needNew() const +{ /* during the startup and reconfigure use our special amount... */ if (starting_up || reconfiguring) return n_startup; diff --git a/src/HelperChildConfig.h b/src/HelperChildConfig.h index 73bc38d01f..89b984f0e5 100644 --- a/src/HelperChildConfig.h +++ b/src/HelperChildConfig.h @@ -7,7 +7,8 @@ * Some derived from a helper children configuration option, * some from runtime stats on the currently active children. */ -class HelperChildConfig { +class HelperChildConfig +{ public: HelperChildConfig(); HelperChildConfig(const unsigned int m, const unsigned int s, const unsigned int i, const unsigned int cc); diff --git a/src/helper.h b/src/helper.h index 6460c4d099..800a0cadc2 100644 --- a/src/helper.h +++ b/src/helper.h @@ -46,7 +46,8 @@ typedef struct _helper_stateful_flags helper_stateful_flags; typedef void HLPSCB(void *, void *lastserver, char *buf); -class helper { +class helper +{ public: inline helper(const char *name) : cmdline(NULL), id_name(name) {}; ~helper(); @@ -73,7 +74,8 @@ private: CBDATA_CLASS2(helper); }; -class statefulhelper : public helper { +class statefulhelper : public helper +{ public: inline statefulhelper(const char *name) : helper(name) {}; inline ~statefulhelper() {}; @@ -90,7 +92,8 @@ private: /* * Fields shared between stateless and stateful helper servers. */ -class HelperServerBase { +class HelperServerBase +{ public: int index; int pid; @@ -109,7 +112,8 @@ public: dlink_node link; }; -class helper_server : public HelperServerBase { +class helper_server : public HelperServerBase +{ public: MemBuf *wqueue; MemBuf *writebuf; @@ -131,7 +135,8 @@ public: class helper_stateful_request; -class helper_stateful_server : public HelperServerBase { +class helper_stateful_server : public HelperServerBase +{ public: /* MemBuf wqueue; */ /* MemBuf writebuf; */ diff --git a/src/tests/stub_HelperChildConfig.cc b/src/tests/stub_HelperChildConfig.cc index 151035d3a4..b7a6153e6a 100644 --- a/src/tests/stub_HelperChildConfig.cc +++ b/src/tests/stub_HelperChildConfig.cc @@ -33,7 +33,8 @@ HelperChildConfig::operator =(const HelperChildConfig &rhs) } const int -HelperChildConfig::needNew() const { +HelperChildConfig::needNew() const +{ /* during the startup and reconfigure use our special amount... */ if (starting_up || reconfiguring) return n_startup;