[Olsr-dev] [PATCH v1 114/115] txtinfo: define the vtime extern in the proper place
Ferry Huberts
(spam-protected)
Wed Dec 2 21:29:27 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/txtinfo/src/olsrd_plugin.h | 1 +
lib/txtinfo/src/olsrd_txtinfo.c | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/txtinfo/src/olsrd_plugin.h b/lib/txtinfo/src/olsrd_plugin.h
index 9390892..38c998f 100644
--- a/lib/txtinfo/src/olsrd_plugin.h
+++ b/lib/txtinfo/src/olsrd_plugin.h
@@ -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);
diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index ae80ad5..ddc6451 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -51,10 +51,9 @@
#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:
--
2.5.0
More information about the Olsr-dev
mailing list