You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2013/12/04 08:25:18 UTC

git commit: TS-2335: getting ts_lua to compile without warnings

Updated Branches:
  refs/heads/master 9f3f799ef -> af63c8ed5


TS-2335: getting ts_lua to compile without warnings


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

Branch: refs/heads/master
Commit: af63c8ed5576245a1d192b4c13a906e2053ac67a
Parents: 9f3f799
Author: Kit Chan <ki...@apache.org>
Authored: Tue Dec 3 23:25:13 2013 -0800
Committer: Kit Chan <ki...@apache.org>
Committed: Tue Dec 3 23:25:13 2013 -0800

----------------------------------------------------------------------
 CHANGES                                     |  2 ++
 plugins/experimental/ts_lua/Makefile.am     |  2 +-
 plugins/experimental/ts_lua/ts_lua_atomic.h | 12 ------------
 3 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/af63c8ed/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 074f202..94ccedb 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@
 Changes with Apache Traffic Server 4.2.0
 
 
+  *) [TS-2335] adding ts_lua plugin to experimental directory
+
   *) [TS-2347] buffer_upload uses unsafe function tempnam(). Replace it 
    with mkstemp()
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/af63c8ed/plugins/experimental/ts_lua/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/experimental/ts_lua/Makefile.am b/plugins/experimental/ts_lua/Makefile.am
index c7d22f1..f1c1b27 100644
--- a/plugins/experimental/ts_lua/Makefile.am
+++ b/plugins/experimental/ts_lua/Makefile.am
@@ -29,7 +29,7 @@ tslua_la_CPPFLAGS = \
 pkglib_LTLIBRARIES = tslua.la
 
 tslua_la_LIBADD = $(LUA_LIBS)
-tslua_la_SOURCES = ts_lua.c ts_lua_atomic.c ts_lua_cached_response.c ts_lua_client_request.c ts_lua_client_response.c ts_lua_context.c ts_lua_hook.c ts_lua_http.c ts_lua_http_intercept.c ts_lua_log.c ts_lua_misc.c ts_lua_server_request.c ts_lua_server_response.c ts_lua_transform.c ts_lua_util.c
+tslua_la_SOURCES = ts_lua.c ts_lua_cached_response.c ts_lua_client_request.c ts_lua_client_response.c ts_lua_context.c ts_lua_hook.c ts_lua_http.c ts_lua_http_intercept.c ts_lua_log.c ts_lua_misc.c ts_lua_server_request.c ts_lua_server_response.c ts_lua_transform.c ts_lua_util.c
 tslua_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS)
 
 endif

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/af63c8ed/plugins/experimental/ts_lua/ts_lua_atomic.h
----------------------------------------------------------------------
diff --git a/plugins/experimental/ts_lua/ts_lua_atomic.h b/plugins/experimental/ts_lua/ts_lua_atomic.h
index 581b89a..a3226c8 100644
--- a/plugins/experimental/ts_lua/ts_lua_atomic.h
+++ b/plugins/experimental/ts_lua/ts_lua_atomic.h
@@ -24,18 +24,6 @@
 #include <stdlib.h>
 #include <stdint.h>
 
-typedef struct
-{
-    volatile int64_t head;
-    const char *name;
-    unsigned int offset;
-} ts_lua_atomiclist;
-
-
-void ts_lua_atomiclist_init(ts_lua_atomiclist * l, const char *name, uint32_t offset_to_next);
-void *ts_lua_atomiclist_push(ts_lua_atomiclist * l, void *item);
-void *ts_lua_atomiclist_popall(ts_lua_atomiclist * l);
-
 static inline int ts_lua_atomic_increment(volatile int32_t *mem, int value) { return __sync_fetch_and_add(mem, value); }
 
 #endif