This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e35c5a9  Fix type cast in bnull_transform plugin
e35c5a9 is described below

commit e35c5a9240c868554295a8945146bfa75dbd466b
Author: scw00 <[email protected]>
AuthorDate: Tue Jun 13 10:32:54 2017 +0800

    Fix type cast in bnull_transform plugin
---
 example/bnull_transform/bnull_transform.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/example/bnull_transform/bnull_transform.c 
b/example/bnull_transform/bnull_transform.c
index 97ed3ba..372268d 100644
--- a/example/bnull_transform/bnull_transform.c
+++ b/example/bnull_transform/bnull_transform.c
@@ -183,10 +183,10 @@ handle_transform(TSCont contp)
      private data structure pointer is NULL, then we'll create it
      and initialize its internals. */
 
-  data = TSContDataGet(contp);
+  data = (MyData *)TSContDataGet(contp);
   if (!data) {
     data = my_data_alloc();
-    TSContDataSet(contp, data);
+    TSContDataSet(contp, (void *)data);
   }
 
   do {
@@ -211,7 +211,7 @@ bnull_transform(TSCont contp, TSEvent event, void *edata 
ATS_UNUSED)
      call to TSVConnClose. */
 
   if (TSVConnClosedGet(contp)) {
-    my_data_destroy(TSContDataGet(contp));
+    my_data_destroy((MyData *)TSContDataGet(contp));
     TSContDestroy(contp);
   } else {
     switch (event) {

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to