txtinfo: define the vtime extern in the proper place
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 17:50:57 +0000 (18:50 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 3 Dec 2015 11:00:09 +0000 (12:00 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_plugin.h
lib/txtinfo/src/olsrd_txtinfo.c

index 9390892..38c998f 100644 (file)
@@ -50,6 +50,7 @@
 #include "../../info/info_types.h"
 
 extern info_plugin_config_t config;
+extern bool vtime;
 
 int olsrd_plugin_interface_version(void);
 int olsrd_plugin_init(void);
index ae80ad5..ddc6451 100644 (file)
 #include "routing_table.h"
 #include "lq_plugin.h"
 #include "gateway.h"
+#include "olsrd_plugin.h"
 #include "../../info/info_types.h"
 
-extern bool vtime;
-
 bool isCommand(const char *str, unsigned int siw) {
   switch (siw) {
     case SIW_OLSRD_CONF: