CLEANUP: cache: don't export http_cache_applet anymore
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Mar 2019 08:57:55 +0000 (09:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Mar 2019 08:58:35 +0000 (09:58 +0100)
This one can become static since it's not used by http/htx anymore.

include/types/cache.h [deleted file]
src/cache.c
src/proto_http.c
src/proto_htx.c

diff --git a/include/types/cache.h b/include/types/cache.h
deleted file mode 100644 (file)
index 3c43006..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef _TYPES_CACHE_H
-#define _TYPES_CACHE_H
-
-struct applet http_cache_applet;
-
-#endif /*_TYPES_CACHE_H */
-
-
index a24c284..879e068 100644 (file)
@@ -48,7 +48,7 @@
 
 const char *cache_store_flt_id = "cache store filter";
 
-struct applet http_cache_applet;
+static struct applet http_cache_applet;
 
 struct flt_ops cache_ops;
 
@@ -1839,7 +1839,7 @@ static struct action_kw_list http_req_actions = {
 
 INITCALL1(STG_REGISTER, http_req_keywords_register, &http_req_actions);
 
-struct applet http_cache_applet = {
+static struct applet http_cache_applet = {
        .obj_type = OBJ_TYPE_APPLET,
        .name = "<CACHE>", /* used for logging */
        .fct = http_cache_io_handler,
index 6373966..85e007b 100644 (file)
@@ -42,7 +42,6 @@
 #include <types/cli.h>
 #include <types/filters.h>
 #include <types/global.h>
-#include <types/cache.h>
 #include <types/stats.h>
 
 #include <proto/acl.h>
index 9e0a135..80d7fa1 100644 (file)
@@ -16,7 +16,6 @@
 #include <common/htx.h>
 #include <common/uri_auth.h>
 
-#include <types/cache.h>
 #include <types/capture.h>
 
 #include <proto/acl.h>