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,
);