Thread (7 messages) flat view 7 messages, 1 author, 2011-07-18
STALE5499d

[PATCH 3/7] Load HTP plugin only if LE is enabled

From: Santiago Carot-Nemesio <hidden>
Date: 2011-07-18 13:10:38
Subsystem: the rest · Maintainer: Linus Torvalds

---
 thermometer/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/thermometer/main.c b/thermometer/main.c
index 33649a7..df3f1ff 100644
--- a/thermometer/main.c
+++ b/thermometer/main.c
@@ -30,14 +30,19 @@
 #include <glib.h>
 #include <errno.h>
 #include <gdbus.h>
+#include <stdint.h>
 
 #include "plugin.h"
+#include "hcid.h"
 #include "manager.h"
 
 static DBusConnection *connection = NULL;
 
 static int thermometer_init(void)
 {
+	if (!main_opts.le)
+		return -EINVAL;
+
 	connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
 	if (connection == NULL)
 		return -EIO;
-- 
1.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help