fixed compiler warning
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <daemon.h>
|
||||
#include "sql_config.h"
|
||||
#include "sql_cred.h"
|
||||
#include "sql_attribute.h"
|
||||
#include "sql_logger.h"
|
||||
|
||||
typedef struct private_sql_plugin_t private_sql_plugin_t;
|
||||
@@ -49,6 +50,11 @@ struct private_sql_plugin_t {
|
||||
*/
|
||||
sql_cred_t *cred;
|
||||
|
||||
/**
|
||||
* CFG attributes
|
||||
*/
|
||||
sql_attribute_t *attribute;
|
||||
|
||||
/**
|
||||
* bus listener/logger
|
||||
*/
|
||||
@@ -65,6 +71,7 @@ static void destroy(private_sql_plugin_t *this)
|
||||
charon->bus->remove_listener(charon->bus, &this->logger->listener);
|
||||
this->config->destroy(this->config);
|
||||
this->cred->destroy(this->cred);
|
||||
this->attribute->destroy(this->attribute);
|
||||
this->logger->destroy(this->logger);
|
||||
this->db->destroy(this->db);
|
||||
free(this);
|
||||
@@ -98,10 +105,12 @@ plugin_t *plugin_create()
|
||||
}
|
||||
this->config = sql_config_create(this->db);
|
||||
this->cred = sql_cred_create(this->db);
|
||||
this->attribute = sql_attribute_create(this->db);
|
||||
this->logger = sql_logger_create(this->db);
|
||||
|
||||
charon->backends->add_backend(charon->backends, &this->config->backend);
|
||||
charon->credentials->add_set(charon->credentials, &this->cred->set);
|
||||
charon->attributes->add_provider(charon->attributes, &this->attribute->provider);
|
||||
charon->bus->add_listener(charon->bus, &this->logger->listener);
|
||||
|
||||
return &this->public.plugin;
|
||||
|
||||
Reference in New Issue
Block a user