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/31 03:14:28 UTC

[09/51] git commit: Fix remaining TSPluginRegister return value tests

Fix remaining TSPluginRegister return value tests


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

Branch: refs/heads/3.3.x
Commit: 369346ef97e3d28f496f0e107b220bda72793469
Parents: 5cbc212
Author: James Peach <jp...@apache.org>
Authored: Mon Mar 18 15:38:00 2013 -0700
Committer: James Peach <jp...@apache.org>
Committed: Mon Mar 18 15:38:05 2013 -0700

----------------------------------------------------------------------
 doc/sdk/TSPluginInit.3                             |    2 +-
 doc/sdk/TSTrafficServerVersionGet.3                |    2 +-
 example/prefetch/test-hns-plugin.c                 |    2 +-
 .../experimental/buffer_upload/buffer_upload.cc    |    2 +-
 .../custom_redirect/custom_redirect.cc             |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/369346ef/doc/sdk/TSPluginInit.3
----------------------------------------------------------------------
diff --git a/doc/sdk/TSPluginInit.3 b/doc/sdk/TSPluginInit.3
index 8994fc0..a040c8a 100644
--- a/doc/sdk/TSPluginInit.3
+++ b/doc/sdk/TSPluginInit.3
@@ -76,7 +76,7 @@ TSPluginInit (int argc, const char *argv[])
       info.vendor_name = "MyCompany";
       info.support_email = "ts-api-support@MyCompany.com";
 
-      if (!TSPluginRegister (TS_SDK_VERSION_2_0 , &info)) {
+      if (TSPluginRegister (TS_SDK_VERSION_2_0 , &info) != TS_SUCCESS) {
          TSError ("Plugin registration failed. \n");
       }
 }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/369346ef/doc/sdk/TSTrafficServerVersionGet.3
----------------------------------------------------------------------
diff --git a/doc/sdk/TSTrafficServerVersionGet.3 b/doc/sdk/TSTrafficServerVersionGet.3
index 63a1483..da41211 100644
--- a/doc/sdk/TSTrafficServerVersionGet.3
+++ b/doc/sdk/TSTrafficServerVersionGet.3
@@ -93,7 +93,7 @@ TSPluginInit (int argc, const char *argv[])
     info.vendor_name = "MyCompany";
     info.support_email = "ts-api-support@MyCompany.com";
 
-    if (!TSPluginRegister(TS_SDK_VERSION_2_0 , &info)) {
+    if (TSPluginRegister(TS_SDK_VERSION_2_0 , &info) != TS_SUCCESS) {
         TSError("Plugin registration failed. \n");
     }
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/369346ef/example/prefetch/test-hns-plugin.c
----------------------------------------------------------------------
diff --git a/example/prefetch/test-hns-plugin.c b/example/prefetch/test-hns-plugin.c
index 5c344e7..fa5b01e 100644
--- a/example/prefetch/test-hns-plugin.c
+++ b/example/prefetch/test-hns-plugin.c
@@ -194,7 +194,7 @@ TSPluginInit(int argc, const char *argv[])
   plugin_info.vendor_name = "MyCompany";
   plugin_info.support_email = "ts-api-support@MyCompany.com";
 
-  if (!TSPluginRegister(TS_SDK_VERSION_3_0, &plugin_info)) {
+  if (TSPluginRegister(TS_SDK_VERSION_3_0, &plugin_info) != TS_SUCCESS) {
     TSError("Plugin registration failed.\n");
     return;
   }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/369346ef/plugins/experimental/buffer_upload/buffer_upload.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/buffer_upload/buffer_upload.cc b/plugins/experimental/buffer_upload/buffer_upload.cc
index 8595c9c..847c519 100644
--- a/plugins/experimental/buffer_upload/buffer_upload.cc
+++ b/plugins/experimental/buffer_upload/buffer_upload.cc
@@ -1239,7 +1239,7 @@ TSPluginInit(int argc, const char *argv[])
     uconfig->use_disk_buffer = 0;
   }
 
-  if (!TSPluginRegister(TS_SDK_VERSION_2_0, &info)) {
+  if (TSPluginRegister(TS_SDK_VERSION_2_0, &info) != TS_SUCCESS) {
     TSError("Plugin registration failed.");
   }
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/369346ef/plugins/experimental/custom_redirect/custom_redirect.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/custom_redirect/custom_redirect.cc b/plugins/experimental/custom_redirect/custom_redirect.cc
index bd5e193..b09217c 100644
--- a/plugins/experimental/custom_redirect/custom_redirect.cc
+++ b/plugins/experimental/custom_redirect/custom_redirect.cc
@@ -160,7 +160,7 @@ TSPluginInit (int argc, const char *argv[])
         redirect_url_header_len = strlen(redirect_url_header);
     }
     /*
-    if (!TSPluginRegister (TS_SDK_VERSION_5_2 , &info)) {
+    if (TSPluginRegister (TS_SDK_VERSION_5_2 , &info) != TS_SUCCESS) {
         TSError ("[custom_redirect] Plugin registration failed.");
     }
     */