Browse Source

remove bogus subscriber

Signed-off-by: John Crispin <blogic@openwrt.org>
John Crispin 11 years ago
parent
commit
f29ce20a2f
1 changed files with 0 additions and 6 deletions
  1. 0 6
      log.c

+ 0 - 6
log.c

@@ -20,8 +20,6 @@
 #include "procd.h"
 #include "syslog.h"
 
-static struct ubus_subscriber log_event;
-
 static int notify;
 struct ubus_context *_ctx;
 static struct blob_buf b;
@@ -134,8 +132,4 @@ void ubus_init_log(struct ubus_context *ctx)
 	ret = ubus_add_object(ctx, &log_object);
 	if (ret)
 		ERROR("Failed to add object: %s\n", ubus_strerror(ret));
-
-	ret = ubus_register_subscriber(ctx, &log_event);
-	if (ret)
-		ERROR("Failed to add watch handler: %s\n", ubus_strerror(ret));
 }