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 2010/05/13 19:44:13 UTC

svn commit: r943951 [19/19] - in /trafficserver/traffic/tags/2.1.0: ./ ci/ example/add-header/ example/app-template/ example/append-transform/ example/basic-auth/ example/blacklist-0/ example/blacklist-1/ example/bnull-transform/ example/cache_scan/ ex...

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin4.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin4.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin4.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin4.c Thu May 13 17:43:56 2010
@@ -21,21 +21,21 @@
   limitations under the License.
  */
 
-/* orderplugin4.c: one of the set of 5 plugins that help determine if  
+/* orderplugin4.c: one of the set of 5 plugins that help determine if
  *                 the order in which the plugins are invoked at any
  *                 hook is the same as the order in which they appear
- *                 in plugin.config file. The plugin logs an error 
+ *                 in plugin.config file. The plugin logs an error
  *                 message in logs/error.log file if the sequence in
  *                 which the plugin is invoked is incorrect.
  *
  *
- *   Usage: 
+ *   Usage:
  *   (NT):orderplugin4.dll valuei
  *   (Solaris):orderplugin4.so valuei
- *  
- *   valuei is the order in which the plugin name appears in 
- *          plugin.config file among the set of the 5 plugins 
- *          (ignore orderstartplugin.so). 
+ *
+ *   valuei is the order in which the plugin name appears in
+ *          plugin.config file among the set of the 5 plugins
+ *          (ignore orderstartplugin.so).
  *          i.e. If the plugin is listed on top of the other
  *           3 plugins then valuei is 1.
  *

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/order/orderstartplugin.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/order/orderstartplugin.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/order/orderstartplugin.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/order/orderstartplugin.c Thu May 13 17:43:56 2010
@@ -21,18 +21,18 @@
   limitations under the License.
  */
 
-/* orderstartplugin.c: one of the set of 5 plugins that help determine if  
+/* orderstartplugin.c: one of the set of 5 plugins that help determine if
  *                 the order in which the plugins are invoked at any
  *                 hook is the same as the order in which they appear
- *                 in plugin.config file. The plugin logs an error 
+ *                 in plugin.config file. The plugin logs an error
  *                 message in logs/error.log file if the sequence in
  *                 which the plugin is invoked is incorrect.
  *
  *
- *   Usage: 
+ *   Usage:
  *   (NT):orderstartplugin.dll
  *   (Solaris):orderstartplugin.so
- *  
+ *
  *
  */
 

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/http_connect_bridge.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/http_connect_bridge.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/http_connect_bridge.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/http_connect_bridge.c Thu May 13 17:43:56 2010
@@ -24,7 +24,7 @@
 /*   http_connect_bridge.c - Test program for INKHttpConnect() interface.
  *     Listens on a port and forwards all traffic to http system
  *     allowing the use all existing test & load tools
- * 
+ *
  *
  */
 
@@ -42,7 +42,7 @@
 /* #define DEBUG 1 */
 
 /**************************************************
-   Log macros for error code return verification 
+   Log macros for error code return verification
 **************************************************/
 #define PLUGIN_NAME "http_connect_bridge"
 #define VALID_POINTER(X) ((X != NULL) && (X != INK_ERROR_PTR))

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/net_bridge.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/net_bridge.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/net_bridge.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/net_bridge.c Thu May 13 17:43:56 2010
@@ -24,7 +24,7 @@
 /*   net_bridge.c - another test program to test plugin as origin
  *     server interface.  Connects to origin server allowing
  *     the use all existing test & load tools
- * 
+ *
  *
  */
 
@@ -42,7 +42,7 @@
 #define DEBUG_TAG "net_bridge-dbg"
 
 /**************************************************
-   Log macros for error code return verification 
+   Log macros for error code return verification
 **************************************************/
 #define PLUGIN_NAME "net_bridge"
 #define VALID_POINTER(X) ((X != NULL) && (X != INK_ERROR_PTR))

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/serve_file.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/serve_file.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/serve_file.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/plugin_as_origin/serve_file.c Thu May 13 17:43:56 2010
@@ -21,7 +21,7 @@
   limitations under the License.
  */
 
-/* serve_file.c: plugin to test plugin as origin server interface by 
+/* serve_file.c: plugin to test plugin as origin server interface by
  *   serving a file from the file system
  *
  *
@@ -42,7 +42,7 @@
 /* #define DEBUG 1 */
 
 /**************************************************
-   Log macros for error code return verification 
+   Log macros for error code return verification
 **************************************************/
 #define PLUGIN_NAME "serve_file"
 #define VALID_POINTER(X) ((X != NULL) && (X != INK_ERROR_PTR))

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-deprecated/redirect-1.deprecated.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-deprecated/redirect-1.deprecated.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-deprecated/redirect-1.deprecated.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-deprecated/redirect-1.deprecated.c Thu May 13 17:43:56 2010
@@ -21,14 +21,14 @@
   limitations under the License.
  */
 
-/* 
- *   redirect-1.c:  
- *	an example program which redirects clients based on the source IP 
+/*
+ *   redirect-1.c:
+ *	an example program which redirects clients based on the source IP
  *
  *
- *	Usage:	
- * 	(NT): Redirect.dll block_ip url_redirect 
- * 	(Solaris): redirect-1.so block_ip url_redirect 
+ *	Usage:
+ * 	(NT): Redirect.dll block_ip url_redirect
+ * 	(Solaris): redirect-1.so block_ip url_redirect
  *
  *
  */
@@ -53,8 +53,8 @@ static unsigned int ip_deny;
 static unsigned int clientip;
 #endif
 
-/* 
- * uncoupled statistics variables: 
+/*
+ * uncoupled statistics variables:
  */
 static INKStat method_count_redirected_connect;
 static INKStat method_count_redirected_delete;
@@ -69,8 +69,8 @@ static INKStat method_count_redirected_t
 static INKStat method_count_redirected_unknown;
 
 
-/* 
- *	coupled statistics variables: 
+/*
+ *	coupled statistics variables:
  *		coupled stat category for the following stats
  *              is request_outcomes. The relationship among the stats is:
  *		requests_all = requests_redirects + requests_unchanged
@@ -98,8 +98,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
   char *clientstring;
   struct in_addr tempstruct;
 
-  /* 
-   * Here we declare local coupled statistics variables: 
+  /*
+   * Here we declare local coupled statistics variables:
    */
   INKCoupledStat local_request_outcomes;
   INKStat local_requests_all;
@@ -107,13 +107,13 @@ handle_client_lookup(INKHttpTxn txnp, IN
   INKStat local_requests_unchanged;
 
   /*
-   *  Create local copy of the global coupled stat category: 
+   *  Create local copy of the global coupled stat category:
    */
   local_request_outcomes = INKStatCoupledLocalCopyCreate("local_request_outcomes", request_outcomes);
 
 
-  /* 
-   * Create the local copies of the global coupled stats: 
+  /*
+   * Create the local copies of the global coupled stats:
    */
   local_requests_all = INKStatCoupledLocalAdd(local_request_outcomes, "requests.all.local", INKSTAT_TYPE_FLOAT);
   local_requests_redirects = INKStatCoupledLocalAdd(local_request_outcomes,
@@ -122,8 +122,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
                                                     "requests.unchanged.local", INKSTAT_TYPE_INT64);
 
 
-  /* 
-   *   Increment the count of total requests: 
+  /*
+   *   Increment the count of total requests:
    *     (it is more natural to treat the number of requests as an
    *      integer, but we declare this a FLOAT in order to demonstrate
    *      how to increment coupled FLOAT stats)
@@ -159,7 +159,7 @@ handle_client_lookup(INKHttpTxn txnp, IN
     goto done;
   }
 
-  /* 
+  /*
    *   Check to see if the client is already headed to the redirect site.
    */
   if (strcmp(host, url_redirect) == 0) {
@@ -173,8 +173,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
 
     update_redirected_method_stats(bufp, hdr_loc);
 
-    /* 
-     *   Increment the local redirect stat and do global update: 
+    /*
+     *   Increment the local redirect stat and do global update:
      */
     INKStatIncrement(local_requests_redirects);
     INKStatsCoupledUpdate(local_request_outcomes);
@@ -185,8 +185,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
 done:
   INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
 
-  /* 
-   * Increment the local number unchanged stat and do global update: 
+  /*
+   * Increment the local number unchanged stat and do global update:
    */
   INKStatIncrement(local_requests_unchanged);
   INKStatsCoupledUpdate(local_request_outcomes);
@@ -220,7 +220,7 @@ handle_response(INKHttpTxn txnp)
   INKMimeHdrFieldInsert(bufp, hdr_loc, newfield_loc, -1);
 
 
-  /* 
+  /*
    *  Note that we can't directly use errormsg_body, as INKHttpTxnBodySet()
    *  will try to free the passed buffer with INKfree().
    */
@@ -260,8 +260,8 @@ redirect_plugin(INKCont contp, INKEvent 
 
 
 
-/* 
- *  Global statistics functions: 
+/*
+ *  Global statistics functions:
  */
 
 void
@@ -349,7 +349,7 @@ INKPluginInit(int argc, const char *argv
     block_ip = INKstrdup(argv[1]);
 
     /*
-     *   The Location header must contain an absolute URI: 
+     *   The Location header must contain an absolute URI:
      */
 
     url_redirect = INKstrdup(argv[2]);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-neg/redirect-1-neg.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-neg/redirect-1-neg.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-neg/redirect-1-neg.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/redirect-1-neg/redirect-1-neg.c Thu May 13 17:43:56 2010
@@ -21,14 +21,14 @@
   limitations under the License.
  */
 
-/* 
- *   redirect-1.c:  
- *	an example program which redirects clients based on the source IP 
+/*
+ *   redirect-1.c:
+ *	an example program which redirects clients based on the source IP
  *
  *
- *	Usage:	
- * 	(NT): Redirect.dll block_ip url_redirect 
- * 	(Solaris): redirect-1.so block_ip url_redirect 
+ *	Usage:
+ * 	(NT): Redirect.dll block_ip url_redirect
+ * 	(Solaris): redirect-1.so block_ip url_redirect
  *
  *
  */
@@ -51,8 +51,8 @@ static in_addr_t ip_deny;
 static unsigned int ip_deny;
 #endif
 
-/* 
- * uncoupled statistics variables: 
+/*
+ * uncoupled statistics variables:
  */
 static INKStat method_count_redirected_connect;
 static INKStat method_count_redirected_delete;
@@ -67,8 +67,8 @@ static INKStat method_count_redirected_t
 static INKStat method_count_redirected_unknown;
 
 
-/* 
- *	coupled statistics variables: 
+/*
+ *	coupled statistics variables:
  *		coupled stat category for the following stats
  *              is request_outcomes. The relationship among the stats is:
  *		requests_all = requests_redirects + requests_unchanged
@@ -110,8 +110,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
   char *clientstring;
   struct in_addr tempstruct;
 
-  /* 
-   * Here we declare local coupled statistics variables: 
+  /*
+   * Here we declare local coupled statistics variables:
    */
   INKCoupledStat local_request_outcomes;
   INKStat local_requests_all;
@@ -121,13 +121,13 @@ handle_client_lookup(INKHttpTxn txnp, IN
   LOG_SET_FUNCTION_NAME("handle_client_lookup");
 
   /*
-   *  Create local copy of the global coupled stat category: 
+   *  Create local copy of the global coupled stat category:
    */
   local_request_outcomes = INKStatCoupledLocalCopyCreate("local_request_outcomes", request_outcomes);
 
 
-  /* 
-   * Create the local copies of the global coupled stats: 
+  /*
+   * Create the local copies of the global coupled stats:
    */
   local_requests_all = INKStatCoupledLocalAdd(local_request_outcomes, "requests.all.local", INKSTAT_TYPE_FLOAT);
   local_requests_redirects = INKStatCoupledLocalAdd(local_request_outcomes,
@@ -136,8 +136,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
                                                     "requests.unchanged.local", INKSTAT_TYPE_INT64);
 
 
-  /* 
-   *   Increment the count of total requests: 
+  /*
+   *   Increment the count of total requests:
    *     (it is more natural to treat the number of requests as an
    *      integer, but we declare this a FLOAT in order to demonstrate
    *      how to increment coupled FLOAT stats)
@@ -199,7 +199,7 @@ handle_client_lookup(INKHttpTxn txnp, IN
     goto done;
   }
 
-  /* 
+  /*
    *   Check to see if the client is already headed to the redirect site.
    */
   if (strncmp(host, url_redirect, host_length) == 0) {
@@ -219,8 +219,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
     INKHandleMLocRelease(bufp, hdr_loc, url_loc);
     INKHandleMLocRelease(bufp, INK_NULL_MLOC, hdr_loc);
 
-    /* 
-     *   Increment the local redirect stat and do global update: 
+    /*
+     *   Increment the local redirect stat and do global update:
      */
     INKStatIncrement(local_requests_redirects);
     INKStatsCoupledUpdate(local_request_outcomes);
@@ -231,8 +231,8 @@ handle_client_lookup(INKHttpTxn txnp, IN
   }
 
 done:
-  /* 
-   * Increment the local number unchanged stat and do global update: 
+  /*
+   * Increment the local number unchanged stat and do global update:
    */
   INKStatIncrement(local_requests_unchanged);
   INKStatsCoupledUpdate(local_request_outcomes);
@@ -280,7 +280,7 @@ handle_response(INKHttpTxn txnp)
   INKMimeHdrFieldInsert(bufp, hdr_loc, newfield_loc, -1);
 
 
-  /* 
+  /*
    *  Note that we can't directly use errormsg_body, as INKHttpTxnErrorBodySet()
    *  will try to free the passed buffer with INKfree().
    */
@@ -322,8 +322,8 @@ redirect_plugin(INKCont contp, INKEvent 
 
 
 
-/* 
- *  Global statistics functions: 
+/*
+ *  Global statistics functions:
  */
 
 void
@@ -478,7 +478,7 @@ INKPluginInit(int argc, const char *argv
     block_ip = INKstrdup(argv[1]);
 
     /*
-     *   The Location header must contain an absolute URI: 
+     *   The Location header must contain an absolute URI:
      */
 
     url_redirect = INKstrdup(argv[2]);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/test-mgmt/test-mgmt.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/test-mgmt/test-mgmt.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/test-mgmt/test-mgmt.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/test-mgmt/test-mgmt.c Thu May 13 17:43:56 2010
@@ -24,7 +24,7 @@
 /***************************************************************
  * test-mgmt:
  * This sample plugins calls the Plugin Management APIs
- * The API covered in this plugin are - 
+ * The API covered in this plugin are -
  * 		- INKMgmtCounterGet
  *		- INKMgmtFloatGet
  * 		- INKMgmtIntGet

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.c Thu May 13 17:43:56 2010
@@ -187,7 +187,7 @@ log_request(ConnData * conn_data)
 }
 
 /*
- * Generate client response 
+ * Generate client response
  */
 static void
 generate_response(ConnData * conn_data)
@@ -570,7 +570,7 @@ accept_handler(INKCont contp, INKEvent e
     break;
 
   default:
-    /* Something wrong with the network, if there are any 
+    /* Something wrong with the network, if there are any
        pending NetAccept, cancel them. */
     if (actionp && !INKActionDone(actionp)) {
       INKActionCancel(actionp);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.cc (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/test-protocol/test-protocol.cc Thu May 13 17:43:56 2010
@@ -183,7 +183,7 @@ log_request(ConnData * conn_data)
 }
 
 /*
- * Generate client response 
+ * Generate client response
  */
 static void
 generate_response(ConnData * conn_data)
@@ -540,7 +540,7 @@ accept_handler(INKCont contp, INKEvent e
     break;
 
   default:
-    /* Something wrong with the network, if there are any 
+    /* Something wrong with the network, if there are any
        pending NetAccept, cancel them. */
     if (actionp && !INKActionDone(actionp)) {
       INKActionCancel(actionp);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/test-transform/test-transform.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/test-transform/test-transform.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/test-transform/test-transform.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/test-transform/test-transform.c Thu May 13 17:43:56 2010
@@ -21,7 +21,7 @@
   limitations under the License.
  */
 
-/* 
+/*
  * This plugin is used to test the following APIs:
  * -- INKHttpTxnUntransformedRespCache
  * -- INKHttpTxnTransformedRespCache
@@ -271,8 +271,8 @@ transform_init(INKCont contp, MyData * d
                                         INKVIONBytesGet(input_vio))) == INK_ERROR_PTR)
     LOG_ERROR_AND_RETURN("INKVConnWrite");
 
-  /* 
-   * Mark the output data as having null content encoding 
+  /*
+   * Mark the output data as having null content encoding
    */
   if (INKHttpTxnTransformRespGet(data->txn, &bufp, &hdr_loc) != 1) {
     LOG_ERROR_AND_CLEANUP("INKHttpTxnTransformRespGet");
@@ -324,7 +324,7 @@ handle_transform(INKCont contp)
    * ourself. This VIO contains the buffer that we are to read from
    * as well as the continuation we are to call when the buffer is
    * empty. This is the input VIO (the write VIO for the upstream
-   * vconnection). 
+   * vconnection).
    */
   if ((input_vio = INKVConnWriteVIOGet(contp)) == INK_ERROR_PTR)
     LOG_ERROR_AND_RETURN("INKVConnWriteVIOGet");
@@ -350,7 +350,7 @@ handle_transform(INKCont contp)
    * more WRITE_READY or WRITE_COMPLETE events. For this simplistic
    * transformation that means we're done. In a more complex
    * transformation we might have to finish writing the transformed
-   * data to our output connection. 
+   * data to our output connection.
    */
   if ((input_buffer = INKVIOBufferGet(input_vio)) == INK_ERROR_PTR)
     LOG_ERROR_AND_RETURN("INKVIOBufferGet");
@@ -387,13 +387,13 @@ handle_transform(INKCont contp)
 
   /* Determine how much data we have left to read. For this null
    * transform plugin this is also the amount of data we have left
-   * to write to the output connection. 
+   * to write to the output connection.
    */
   if ((towrite = INKVIONTodoGet(input_vio)) == INK_ERROR)
     LOG_ERROR_AND_RETURN("INKVIONTodoGet");
   if (towrite > 0) {
     /* The amount of data left to read needs to be truncated by
-     * the amount of data actually in the read buffer. 
+     * the amount of data actually in the read buffer.
      */
     if ((avail = INKIOBufferReaderAvail(INKVIOReaderGet(input_vio))) == INK_ERROR)
       LOG_ERROR_AND_RETURN("INKIOBufferReaderAvail");
@@ -420,13 +420,13 @@ handle_transform(INKCont contp)
 #endif
 
       /* Tell the read buffer that we have read the data and are no
-       * longer interested in it. 
+       * longer interested in it.
        */
       if (INKIOBufferReaderConsume(INKVIOReaderGet(input_vio), towrite) == INK_ERROR)
         LOG_ERROR_AND_RETURN("INKIOBufferReaderConsume");
 
       /* Modify the input VIO to reflect how much data we've
-       * completed. 
+       * completed.
        */
       if (INKVIONDoneSet(input_vio, INKVIONDoneGet(input_vio) + towrite) == INK_ERROR)
         LOG_ERROR_AND_RETURN("INKVIONDoneSet");
@@ -434,7 +434,7 @@ handle_transform(INKCont contp)
   }
 
   /* Now we check the input VIO to see if there is data left to
-   * read. 
+   * read.
    */
   if ((ntodo = INKVIONTodoGet(input_vio)) == INK_ERROR)
     LOG_ERROR_AND_RETURN("INKVIONTodoGet");
@@ -444,13 +444,13 @@ handle_transform(INKCont contp)
       /* If there is data left to read, then we reenable the output
        * connection by reenabling the output VIO. This will wake up
        * the output connection and allow it to consume data from the
-       * output buffer. 
+       * output buffer.
        */
       if (INKVIOReenable(data->output_vio) == INK_ERROR)
         LOG_ERROR_AND_RETURN("INKVIOReenable");
 
       /* Call back the input VIO continuation to let it know that we
-       * are ready for more data. 
+       * are ready for more data.
        */
       INKContCall(INKVIOContGet(input_vio), INK_EVENT_VCONN_WRITE_READY, input_vio);
     }
@@ -459,7 +459,7 @@ handle_transform(INKCont contp)
      * VIO to reflect how much data the output connection should
      * expect. This allows the output connection to know when it
      * is done reading. We then reenable the output connection so
-     * that it can consume the data we just gave it. 
+     * that it can consume the data we just gave it.
      */
     if (INKVIONBytesSet(data->output_vio, INKVIONDoneGet(input_vio)) == INK_ERROR)
       LOG_ERROR_AND_RETURN("INKVIONBytesSet");
@@ -467,7 +467,7 @@ handle_transform(INKCont contp)
       LOG_ERROR_AND_RETURN("INKVIOReenable");
 
     /* Call back the input VIO continuation to let it know that we
-     * have completed the write operation. 
+     * have completed the write operation.
      */
     INKContCall(INKVIOContGet(input_vio), INK_EVENT_VCONN_WRITE_COMPLETE, input_vio);
   }
@@ -480,7 +480,7 @@ null_transform(INKCont contp, INKEvent e
   LOG_SET_FUNCTION_NAME("null_transform");
 
   /* Check to see if the transformation has been closed by a call to
-   * INKVConnClose. 
+   * INKVConnClose.
    */
   if (INKVConnClosedGet(contp)) {
     my_data_destroy(INKContDataGet(contp));
@@ -495,13 +495,13 @@ null_transform(INKCont contp, INKEvent e
 
         /* Get the write VIO for the write operation that was
          * performed on ourself. This VIO contains the continuation of
-         * our parent transformation. This is the input VIO.  
+         * our parent transformation. This is the input VIO.
          */
         if ((input_vio = INKVConnWriteVIOGet(contp)) == INK_ERROR_PTR)
           LOG_ERROR_AND_RETURN("INKVConnWriteVIOGet");
 
         /* Call back the write VIO continuation to let it know that we
-         * have completed the write operation. 
+         * have completed the write operation.
          */
         INKContCall(INKVIOContGet(input_vio), INK_EVENT_ERROR, input_vio);
       }

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/write-server-ip/write-server-ip.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/write-server-ip/write-server-ip.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/write-server-ip/write-server-ip.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/write-server-ip/write-server-ip.c Thu May 13 17:43:56 2010
@@ -72,7 +72,7 @@
 static const char *plugin_dir;
 static INKMutex file_mutex;
 
-/******************************************************************** 
+/********************************************************************
  * When the client sends the same request the second time, get the
  * header field MY_HDR from the caches response header, print it out
  * and save it in a text file.
@@ -142,9 +142,9 @@ Lcleanup:
 
 
 /***********************************************************************
- * Get the server ip and request method in the client request. Get the 
- * next hop ip from the server response. 
- * Create a new http header field MY_HDR in the server response and 
+ * Get the server ip and request method in the client request. Get the
+ * next hop ip from the server response.
+ * Create a new http header field MY_HDR in the server response and
  * insert server ip, request method and next hop ip into the field as
  * field values.
  ***********************************************************************/