Visual Studio compile fixes.

This commit is contained in:
Jan Vidar Krey
2011-01-06 12:25:44 +01:00
parent 03b4252ab5
commit bf4ad5624a
5 changed files with 12 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
/*
* uhub - A tiny ADC p2p connection hub
* Copyright (C) 2007-2009, Jan Vidar Krey
* Copyright (C) 2007-2011, Jan Vidar Krey
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,7 +19,6 @@
#include "uhub.h"
static int arg_verbose = 5;
static int arg_fork = 0;
static int arg_check_config = 0;
@@ -145,6 +144,8 @@ int main_loop()
hub_set_variables(hub, &acl);
break;
hub_event_loop(hub);
hub_free_variables(hub);
@@ -231,7 +232,6 @@ void print_usage(char* program)
void parse_command_line(int argc, char** argv)
{
#ifdef HAVE_GETOPT
int opt;
while ((opt = getopt(argc, argv, "vqfc:l:hu:g:VCsSLp:")) != -1)
{
@@ -302,7 +302,6 @@ void parse_command_line(int argc, char** argv)
break;
}
}
#endif /* HAVE_GETOPT */
if (arg_config == NULL)
{

View File

@@ -22,17 +22,13 @@
#include "plugin_api/handle.h"
#ifdef PLUGIN_SUPPORT
struct hub_config;
struct linked_list;
struct plugin_handle;
struct uhub_plugin
{
#ifdef HAVE_DLOPEN
void* handle;
#endif
plugin_unregister_f unregister;
};
@@ -54,9 +50,5 @@ extern struct uhub_plugin* plugin_open(const char* filename);
extern void plugin_close(struct uhub_plugin*);
extern void* plugin_lookup_symbol(struct uhub_plugin*, const char* symbol);
#endif /* PLUGIN_SUPPORT */
#endif /* HAVE_UHUB_PLUGIN_LOADER_H */