Repository: trafficserver Updated Branches: refs/heads/fcollapse e8eb8a6bd -> 57537fd8f
Made all internal methods and data "static" per @jpeach's suggestion. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/57537fd8 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/57537fd8 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/57537fd8 Branch: refs/heads/fcollapse Commit: 57537fd8fecbbfb2c979ce2b28ffba9ffdfc0498 Parents: e8eb8a6 Author: Sudheer Vinukonda <[email protected]> Authored: Mon Feb 29 18:32:05 2016 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Mon Feb 29 18:32:05 2016 +0000 ---------------------------------------------------------------------- .../collapsed_forwarding.cc | 30 ++++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/57537fd8/plugins/experimental/collapsed_forwarding/collapsed_forwarding.cc ---------------------------------------------------------------------- diff --git a/plugins/experimental/collapsed_forwarding/collapsed_forwarding.cc b/plugins/experimental/collapsed_forwarding/collapsed_forwarding.cc index 9c5acfb..5bd4e7b 100644 --- a/plugins/experimental/collapsed_forwarding/collapsed_forwarding.cc +++ b/plugins/experimental/collapsed_forwarding/collapsed_forwarding.cc @@ -47,7 +47,7 @@ //////////////////////////////////////////////////////////////////////////////////// #define UNUSED __attribute__((unused)) -static char UNUSED rcsId__header_normalize_cc[] = +static char UNUSED rcsId__collapsed_forwarding_cc[] = "@(#) $Id: collapsed_forwarding.cc 218 2016-02-26 01:29:16Z sudheerv $ built on " __DATE__ " " __TIME__; @@ -65,14 +65,14 @@ static char UNUSED rcsId__header_normalize_cc[] = #include <netdb.h> #include <map> -const char *DEBUG_TAG = (char *)"collapsed_forwarding"; +static const char *DEBUG_TAG = (char *)"collapsed_forwarding"; -const char *LOCATION_HEADER = "Location"; -const char *REDIRECT_REASON = "See Other"; -const char *ATS_INTERNAL_MESSAGE = "@Ats-Internal"; +static const char *LOCATION_HEADER = "Location"; +static const char *REDIRECT_REASON = "See Other"; +static const char *ATS_INTERNAL_MESSAGE = "@Ats-Internal"; -int OPEN_WRITE_FAIL_MAX_REQ_DELAY_RETRIES = 5; -int OPEN_WRITE_FAIL_REQ_DELAY_TIMEOUT = 500; +static int OPEN_WRITE_FAIL_MAX_REQ_DELAY_RETRIES = 5; +static int OPEN_WRITE_FAIL_REQ_DELAY_TIMEOUT = 500; typedef struct _RequestData { TSHttpTxn txnp; @@ -80,7 +80,7 @@ typedef struct _RequestData { std::string req_url; } RequestData; -int +static int add_redirect_header(TSMBuffer &bufp, TSMLoc &hdr_loc, const std::string &location) { // This is needed in case the response already contains a Location header @@ -102,7 +102,7 @@ add_redirect_header(TSMBuffer &bufp, TSMLoc &hdr_loc, const std::string &locatio return TS_SUCCESS; } -bool +static bool check_internal_message_hdr(TSHttpTxn &txnp) { TSMBuffer bufp; @@ -127,7 +127,7 @@ check_internal_message_hdr(TSHttpTxn &txnp) return found; } -int +static int on_OS_DNS(const RequestData *req, TSHttpTxn &txnp) { if (req->wl_retry > 0) { @@ -140,7 +140,7 @@ on_OS_DNS(const RequestData *req, TSHttpTxn &txnp) return TS_SUCCESS; } -int +static int on_send_request_header(const RequestData *req, TSHttpTxn &txnp) { if (req->wl_retry > 0) { @@ -153,14 +153,14 @@ on_send_request_header(const RequestData *req, TSHttpTxn &txnp) return TS_SUCCESS; } -int +static int on_read_response_header(TSHttpTxn &txnp) { TSHttpTxnReenable(txnp, TS_EVENT_HTTP_CONTINUE); return TS_SUCCESS; } -int +static int on_immediate(RequestData *req, TSCont &contp) { if (!req) { @@ -187,7 +187,7 @@ on_immediate(RequestData *req, TSCont &contp) return TS_SUCCESS; } -int +static int on_send_response_header(RequestData *req, TSHttpTxn &txnp, TSCont &contp) { TSMBuffer bufp; @@ -229,7 +229,7 @@ on_send_response_header(RequestData *req, TSHttpTxn &txnp, TSCont &contp) return TS_SUCCESS; } -int +static int collapsed_cont(TSCont contp, TSEvent event, void *edata) { TSHttpTxn txnp = static_cast<TSHttpTxn>(edata);
