fixed some compiler warnings
This commit is contained in:
@@ -106,7 +106,6 @@ static void destroy(private_file_logger_t *this)
|
||||
*/
|
||||
file_logger_t *file_logger_create(FILE *out)
|
||||
{
|
||||
debug_t group;
|
||||
private_file_logger_t *this = malloc_thing(private_file_logger_t);
|
||||
|
||||
/* public functions */
|
||||
|
||||
@@ -612,6 +612,11 @@ static void to_subnet(private_traffic_selector_t *this, host_t **net, u_int8_t *
|
||||
net_chunk.len = sizeof(this->from6);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
/* unreachable */
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
net_chunk.ptr = malloc(net_chunk.len);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/mutex.h>
|
||||
#include <utils/lexparser.h>
|
||||
|
||||
typedef struct private_stroke_config_t private_stroke_config_t;
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
|
||||
#include "updown_plugin.h"
|
||||
|
||||
#include <daemon.h>
|
||||
|
||||
@@ -145,8 +145,6 @@ struct private_task_manager_t {
|
||||
*/
|
||||
static void flush(private_task_manager_t *this)
|
||||
{
|
||||
task_t *task;
|
||||
|
||||
this->queued_tasks->destroy_offset(this->queued_tasks,
|
||||
offsetof(task_t, destroy));
|
||||
this->passive_tasks->destroy_offset(this->passive_tasks,
|
||||
|
||||
+2
-6
@@ -207,7 +207,7 @@ static int exec(private_mconsole_t *this, void(*cb)(void*,char*,size_t),
|
||||
/**
|
||||
* Poll until guest is ready
|
||||
*/
|
||||
static bool wait_bootup(private_mconsole_t *this)
|
||||
static void wait_bootup(private_mconsole_t *this)
|
||||
{
|
||||
/* wait for init process to appear */
|
||||
while (request(this, ignore, NULL, "exec ps -p 1 > /dev/null"))
|
||||
@@ -346,11 +346,7 @@ mconsole_t *mconsole_create(char *notify, void(*idle)(void))
|
||||
}
|
||||
unlink(notify);
|
||||
|
||||
if (!wait_bootup(this))
|
||||
{
|
||||
destroy(this);
|
||||
return NULL;
|
||||
}
|
||||
wait_bootup(this);
|
||||
|
||||
return &this->public;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user