libhydra: Remove unused hydra->daemon

This commit is contained in:
Tobias Brunner
2014-02-12 14:34:32 +01:00
parent d347a130f5
commit 10c4f4e1fd
11 changed files with 12 additions and 22 deletions
+1 -3
View File
@@ -59,7 +59,6 @@ void libhydra_deinit()
this->public.attributes->destroy(this->public.attributes);
this->public.kernel_interface->destroy(this->public.kernel_interface);
free((void*)this->public.daemon);
free(this);
hydra = NULL;
}
@@ -67,7 +66,7 @@ void libhydra_deinit()
/**
* Described in header.
*/
bool libhydra_init(const char *daemon)
bool libhydra_init()
{
private_hydra_t *this;
@@ -81,7 +80,6 @@ bool libhydra_init(const char *daemon)
INIT(this,
.public = {
.attributes = attribute_manager_create(),
.daemon = strdup(daemon ?: "libhydra"),
},
.ref = 1,
);
+2 -10
View File
@@ -53,11 +53,6 @@ struct hydra_t {
* kernel interface to communicate with kernel
*/
kernel_interface_t *kernel_interface;
/**
* name of the daemon that initialized the library
*/
const char *daemon;
};
/**
@@ -70,15 +65,12 @@ extern hydra_t *hydra;
/**
* Initialize libhydra.
*
* The daemon's name is used to load daemon-specific settings.
*
* libhydra_init() may be called multiple times in a single process, but each
* caller should call libhydra_deinit() for each call to libhydra_init().
* caller must call libhydra_deinit() for each call to libhydra_init().
*
* @param daemon name of the daemon that initializes the library
* @return FALSE if integrity check failed
*/
bool libhydra_init(const char *daemon);
bool libhydra_init();
/**
* Deinitialize libhydra.