summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-01-21 17:58:22 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2019-01-21 17:58:22 -0500
commita929de7ae500f5e66a157a7b2e6b439617b001c2 (patch)
tree403761c6b85cc04b4557d54e90003d9874b276f7
parent69d17e04cd3c38235f2421b4dbfc42c734657587 (diff)
downloadlighttpd1.4-a929de7ae500f5e66a157a7b2e6b439617b001c2.tar.gz
lighttpd1.4-a929de7ae500f5e66a157a7b2e6b439617b001c2.zip
[multiple] calloc match ptr type (clang --analyze)
-rw-r--r--src/mod_vhostdb_dbi.c2
-rw-r--r--src/mod_vhostdb_ldap.c2
-rw-r--r--src/mod_vhostdb_mysql.c2
-rw-r--r--src/mod_vhostdb_pgsql.c2
-rw-r--r--src/mod_wstunnel.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_vhostdb_dbi.c b/src/mod_vhostdb_dbi.c
index fbb60393..0c78e12a 100644
--- a/src/mod_vhostdb_dbi.c
+++ b/src/mod_vhostdb_dbi.c
@@ -259,7 +259,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
- p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
+ p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
for (size_t i = 0; i < srv->config_context->used; ++i) {
data_config const *config = (data_config const*)srv->config_context->data[i];
diff --git a/src/mod_vhostdb_ldap.c b/src/mod_vhostdb_ldap.c
index e21e1c26..e81c4933 100644
--- a/src/mod_vhostdb_ldap.c
+++ b/src/mod_vhostdb_ldap.c
@@ -484,7 +484,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
- p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
+ p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
for (size_t i = 0; i < srv->config_context->used; ++i) {
data_config const *config = (data_config const*)srv->config_context->data[i];
diff --git a/src/mod_vhostdb_mysql.c b/src/mod_vhostdb_mysql.c
index bd3d63a2..5905bc81 100644
--- a/src/mod_vhostdb_mysql.c
+++ b/src/mod_vhostdb_mysql.c
@@ -223,7 +223,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
- p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
+ p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
for (size_t i = 0; i < srv->config_context->used; ++i) {
data_config const *config = (data_config const*)srv->config_context->data[i];
diff --git a/src/mod_vhostdb_pgsql.c b/src/mod_vhostdb_pgsql.c
index 5dd2b458..a87f4359 100644
--- a/src/mod_vhostdb_pgsql.c
+++ b/src/mod_vhostdb_pgsql.c
@@ -200,7 +200,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
- p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
+ p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
for (size_t i = 0; i < srv->config_context->used; ++i) {
data_config const *config = (data_config const*)srv->config_context->data[i];
diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c
index 57cfb8bf..6843ace5 100644
--- a/src/mod_wstunnel.c
+++ b/src/mod_wstunnel.c
@@ -214,7 +214,7 @@ SETDEFAULTS_FUNC(mod_wstunnel_set_defaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
- p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
+ p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
force_assert(p->config_storage);
for (size_t i = 0; i < srv->config_context->used; ++i) {
array *ca = ((data_config *)(srv->config_context->data[i]))->value;