diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-10-19 00:30:54 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-05-23 17:59:29 -0400 |
commit | e2de4e581ec7a61fd9f5218f260d3890837e31a4 (patch) | |
tree | 1b3a143b871afa3140d3876a6628b035079ef9db /src/mod_extforward.c | |
parent | 2c43ae73dd8e8c475fcd578d4bcdf6fccfadb59c (diff) | |
download | lighttpd-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_extforward.c')
-rw-r--r-- | src/mod_extforward.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_extforward.c b/src/mod_extforward.c index 81f2dbb2..e9a93351 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -1168,7 +1168,7 @@ CONNECTION_FUNC(mod_extforward_handle_con_accept) int mod_extforward_plugin_init(plugin *p); int mod_extforward_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; - p->name = buffer_init_string("extforward"); + p->name = "extforward"; p->init = mod_extforward_init; p->handle_connection_accept = mod_extforward_handle_con_accept; @@ -1180,8 +1180,6 @@ int mod_extforward_plugin_init(plugin *p) { p->set_defaults = mod_extforward_set_defaults; p->cleanup = mod_extforward_free; - p->data = NULL; - return 0; } |