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,
|
||||
|
||||
Reference in New Issue
Block a user