summaryrefslogtreecommitdiff
path: root/src/mod_wstunnel.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-10-19 00:30:54 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-05-23 17:59:29 -0400
commite2de4e581ec7a61fd9f5218f260d3890837e31a4 (patch)
tree1b3a143b871afa3140d3876a6628b035079ef9db /src/mod_wstunnel.c
parent2c43ae73dd8e8c475fcd578d4bcdf6fccfadb59c (diff)
downloadlighttpd-git-e2de4e581ec7a61fd9f5218f260d3890837e31a4.tar.gz
[core] const char *name in struct plugin
put void *data (always used) as first member of struct plugin add int nconfig member to PLUGIN_DATA calloc() inits p->data to NULL
Diffstat (limited to 'src/mod_wstunnel.c')
-rw-r--r--src/mod_wstunnel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c
index 6b20d78b..a84c3b6c 100644
--- a/src/mod_wstunnel.c
+++ b/src/mod_wstunnel.c
@@ -638,7 +638,7 @@ TRIGGER_FUNC(mod_wstunnel_handle_trigger) {
int mod_wstunnel_plugin_init(plugin *p);
int mod_wstunnel_plugin_init(plugin *p) {
p->version = LIGHTTPD_VERSION_ID;
- p->name = buffer_init_string("wstunnel");
+ p->name = "wstunnel";
p->init = mod_wstunnel_init;
p->cleanup = mod_wstunnel_free;
p->set_defaults = mod_wstunnel_set_defaults;
@@ -647,7 +647,6 @@ int mod_wstunnel_plugin_init(plugin *p) {
p->handle_subrequest = gw_handle_subrequest;
p->handle_trigger = mod_wstunnel_handle_trigger;
p->handle_waitpid = gw_handle_waitpid_cb;
- p->data = NULL;
return 0;
}