[OpenWrt-Devel] [PATCH 1/4] [ubox] log: remove unused callbacks

Luka Perkov luka at openwrt.org
Tue Apr 21 13:04:43 EDT 2015


Signed-off-by: Luka Perkov <luka at openwrt.org>
---
 log/logd.c    | 6 ------
 log/logread.c | 5 -----
 2 files changed, 11 deletions(-)

diff --git a/log/logd.c b/log/logd.c
index 8cebeb8..4a7a746 100644
--- a/log/logd.c
+++ b/log/logd.c
@@ -55,11 +55,6 @@ client_close(struct ustream *s)
 	free(cl);
 }
 
-static void
-client_notify_write(struct ustream *s, int bytes)
-{
-}
-
 static void client_notify_state(struct ustream *s)
 {
 	client_close(s);
@@ -88,7 +83,6 @@ read_log(struct ubus_context *ctx, struct ubus_object *obj,
 	}
 	ubus_request_set_fd(ctx, req, fds[0]);
 	cl = calloc(1, sizeof(*cl));
-	cl->s.stream.notify_write = client_notify_write;
 	cl->s.stream.notify_state = client_notify_state;
 	cl->fd = fds[1];
 	ustream_fd_init(&cl->s, cl->fd);
diff --git a/log/logread.c b/log/logread.c
index 94b96db..6255408 100644
--- a/log/logread.c
+++ b/log/logread.c
@@ -223,10 +223,6 @@ static void logread_fd_cb(struct ubus_request *req, int fd)
 	ustream_fd_init(&test_fd, fd);
 }
 
-static void logread_complete_cb(struct ubus_request *req, int ret)
-{
-}
-
 int main(int argc, char **argv)
 {
 	static struct ubus_request req;
@@ -334,7 +330,6 @@ int main(int argc, char **argv)
 
 		ubus_invoke_async(ctx, id, "read", b.head, &req);
 		req.fd_cb = logread_fd_cb;
-		req.complete_cb = logread_complete_cb;
 		ubus_complete_request_async(ctx, &req);
 
 		uloop_run();
-- 
2.3.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list