You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2014/04/09 00:19:46 UTC

git commit: tcp_info: remove whitespace

Repository: trafficserver
Updated Branches:
  refs/heads/master df9a3a6ab -> a8ed22df0


tcp_info: remove whitespace


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

Branch: refs/heads/master
Commit: a8ed22df09e104278d7e77aea32e9c17076216e0
Parents: df9a3a6
Author: James Peach <jp...@apache.org>
Authored: Tue Apr 8 15:19:38 2014 -0700
Committer: James Peach <jp...@apache.org>
Committed: Tue Apr 8 15:19:38 2014 -0700

----------------------------------------------------------------------
 plugins/experimental/tcp_info/tcp_info.cc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a8ed22df/plugins/experimental/tcp_info/tcp_info.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/tcp_info/tcp_info.cc b/plugins/experimental/tcp_info/tcp_info.cc
index 8a9d98b..f9b2b0c 100644
--- a/plugins/experimental/tcp_info/tcp_info.cc
+++ b/plugins/experimental/tcp_info/tcp_info.cc
@@ -55,7 +55,7 @@ load_config() {
   config.log_level = 1;
   config.log_file = NULL;
   config.hook = 1;
-  
+
   // get the install directory
   const char* install_dir = TSInstallDirGet();
 
@@ -173,7 +173,6 @@ log_tcp_info(const char* event_name, const char* client_ip, const char* server_i
   TSDebug("tcp_info", "logging: %s", buffer);
 }
 
-
 static int
 tcp_info_hook(TSCont /* contp ATS_UNUSED */, TSEvent event, void *edata)
 {
@@ -229,7 +228,7 @@ tcp_info_hook(TSCont /* contp ATS_UNUSED */, TSEvent event, void *edata)
         TSDebug("tcp_info", "got the tcp_info struture and now logging");
 
         // get the client address
-        const struct sockaddr *client_addr = TSHttpSsnClientAddrGet(ssnp); 
+        const struct sockaddr *client_addr = TSHttpSsnClientAddrGet(ssnp);
         const struct sockaddr *server_addr = TSHttpSsnIncomingAddrGet(ssnp);
         if (client_addr == NULL || server_addr == NULL)
           goto done;
@@ -241,8 +240,7 @@ tcp_info_hook(TSCont /* contp ATS_UNUSED */, TSEvent event, void *edata)
         // convert ip to string
         inet_ntop(client_addr->sa_family, &(client_in_addr->sin_addr), client_str, INET_ADDRSTRLEN);
         inet_ntop(server_addr->sa_family, &(server_in_addr->sin_addr), server_str, INET_ADDRSTRLEN);
-        
-        
+
         log_tcp_info(event_name, client_str, server_str, tcp_info);
       }
     } else {