trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject git commit: fix build issues
Date Tue, 04 Sep 2012 04:04:05 GMT
Updated Branches:
  refs/heads/master 4d3940e2b -> 06cb5cd69


fix build issues


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/06cb5cd6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/06cb5cd6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/06cb5cd6

Branch: refs/heads/master
Commit: 06cb5cd69602eed64022e5d859be90e326c7060b
Parents: 4d3940e
Author: Brian Geffon <briang@apache.org>
Authored: Mon Sep 3 21:03:47 2012 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Mon Sep 3 21:03:47 2012 -0700

----------------------------------------------------------------------
 lib/cpp11api/cpp11api.cc |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/06cb5cd6/lib/cpp11api/cpp11api.cc
----------------------------------------------------------------------
diff --git a/lib/cpp11api/cpp11api.cc b/lib/cpp11api/cpp11api.cc
index 0294834..0aa3201 100644
--- a/lib/cpp11api/cpp11api.cc
+++ b/lib/cpp11api/cpp11api.cc
@@ -24,7 +24,6 @@
 
 using namespace ats::api;
 
-namespace {
 TSHttpHookID TSHookIDFromHookType(HookType hook);
 
 class HookContinuationData {
@@ -39,7 +38,6 @@ public:
   TSHttpTxn ts_http_txn_ = NULL;
   TSCont ts_contp_ = NULL;
 };
-}
 
 extern "C" void TSPluginInit(int argc, const char *argv[]) {
 
@@ -64,7 +62,6 @@ extern "C" void TSPluginInit(int argc, const char *argv[]) {
   PluginRegister(arguments);
 }
 
-namespace {
 TSHttpHookID TSHookIDFromHookType(HookType hook) {
   switch (hook) {
   case ats::api::HookType::HOOK_PRE_REMAP:
@@ -90,7 +87,7 @@ TSHttpHookID TSHookIDFromHookType(HookType hook) {
     break;
   }
 
-  return NULL;
+  return TS_HTTP_PRE_REMAP_HOOK;
 }
 
 void inline ReenableBasedOnNextState(TSHttpTxn txnp, NextState ns) {
@@ -117,7 +114,6 @@ std::string printable_sockaddr_ip(sockaddr const * s_sockaddr) {
 
   return std::string(res);
 }
-} /* end anonymous namespace */
 
 std::string ats::api::GetPristineRequestUrl(Transaction &t) {
   TSMBuffer bufp;
@@ -521,7 +517,7 @@ void* ats::api::GetTransactionIdentifier(Transaction &t) {
   return reinterpret_cast<void *>(t.ts_http_txn_);
 }
 
-void ats::api::CreateTransactionHook(Transaction &txn, HookType hook,
+void ats::api::CreateTransactionHook(Transaction &txn,HookType hook,
     GlobalHookCallback callback) {
   TSHttpHookID ts_hook_id = TSHookIDFromHookType(hook);
   TSCont contp = TSContCreate(TransactionContinuationHandler, NULL);


Mime
View raw message