You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/09/05 15:17:02 UTC
[trafficserver] branch 8.0.x updated: Ran clang-format
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/8.0.x by this push:
new a259ce3 Ran clang-format
a259ce3 is described below
commit a259ce3fee369b5592925ac6682500c63cad634c
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Sep 5 08:16:15 2018 -0700
Ran clang-format
---
lib/cppapi/Transaction.cc | 2 +-
lib/cppapi/include/atscppapi/Transaction.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/cppapi/Transaction.cc b/lib/cppapi/Transaction.cc
index 287dd8d..2157346 100644
--- a/lib/cppapi/Transaction.cc
+++ b/lib/cppapi/Transaction.cc
@@ -398,7 +398,7 @@ void
Transaction::redirectTo(std::string const &url)
{
// Must re-alloc the string locally because ownership is transferred to the transaction.
- char * const buffer = static_cast<char *>(TSmalloc(url.size() + 1));
+ char *const buffer = static_cast<char *>(TSmalloc(url.size() + 1));
memcpy(buffer, url.c_str(), url.size());
buffer[url.size()] = '\0';
TSHttpTxnRedirectUrlSet(state_->txn_, buffer, url.size());
diff --git a/lib/cppapi/include/atscppapi/Transaction.h b/lib/cppapi/include/atscppapi/Transaction.h
index 4e42459..ccd6c5b 100644
--- a/lib/cppapi/include/atscppapi/Transaction.h
+++ b/lib/cppapi/include/atscppapi/Transaction.h
@@ -306,8 +306,8 @@ public:
CACHE_LOOKUP_SKIPPED, /**< Cache lookup was not performed */
CACHE_LOOKUP_NONE
};
-
- #define CACHE_LOOKUP_SKIPED CACHE_LOOKUP_SKIPPED
+
+#define CACHE_LOOKUP_SKIPED CACHE_LOOKUP_SKIPPED
CacheStatus getCacheStatus();