You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/03/09 01:48:37 UTC

[20/50] git commit: TS-1732: use the same TS constant for hostnames

TS-1732: use the same TS constant for hostnames

n.b.: This will not work out of tree right now, because we don't
install ink_config.h right now.


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

Branch: refs/heads/3.3.x
Commit: e6d24f6a48e934bcc0fbb8444051c90b5b081ecf
Parents: 52af852
Author: Igor Galić <i....@brainsware.org>
Authored: Wed Feb 27 17:49:14 2013 -0800
Committer: Igor Galić <i....@brainsware.org>
Committed: Wed Feb 27 17:49:14 2013 -0800

----------------------------------------------------------------------
 plugins/experimental/authproxy/authproxy.cc |    3 ++-
 proxy/logging/LogConfig.cc                  |    3 ---
 2 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e6d24f6a/plugins/experimental/authproxy/authproxy.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/authproxy/authproxy.cc b/plugins/experimental/authproxy/authproxy.cc
index 6479976..9f16f9a 100644
--- a/plugins/experimental/authproxy/authproxy.cc
+++ b/plugins/experimental/authproxy/authproxy.cc
@@ -37,6 +37,7 @@
 #include <arpa/inet.h>
 #include <sys/param.h>
 #include <ts/remap.h>
+#include <ink_config.h>
 
 using std::strlen;
 
@@ -369,7 +370,7 @@ StateAuthProxyResolve(AuthRequestContext * auth, void *)
     // If we are authorizing with a HEAD request we want to send that to the
     // origin; other requests we want to send to the authorization proxy.
     if (options->transform == AuthWriteHeadRequest) {
-        char        hostname[MAXHOSTNAMELEN * 2];
+        char        hostname[TS_MAX_HOST_NAME_LEN * 2];
         TSMBuffer   mbuf;
         TSMLoc      mhdr;
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e6d24f6a/proxy/logging/LogConfig.cc
----------------------------------------------------------------------
diff --git a/proxy/logging/LogConfig.cc b/proxy/logging/LogConfig.cc
index 48100af..583db81 100644
--- a/proxy/logging/LogConfig.cc
+++ b/proxy/logging/LogConfig.cc
@@ -952,9 +952,6 @@ LogConfig::add_filters_to_search_log_object(const char *format_name)
 //
 // This function adds the pre-defined objects to the global_object_list.
 //
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 256
-#endif
 
 void
 LogConfig::create_pre_defined_objects_with_filter(const PreDefinedFormatInfoList & pre_def_info_list, size_t num_filters,