From patchwork Tue Apr 21 17:04:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Perkov X-Patchwork-Id: 463405 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A241A1401AD for ; Wed, 22 Apr 2015 03:06:10 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9CFFE28BB53; Tue, 21 Apr 2015 19:04:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from localhost (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 269C728BB53; Tue, 21 Apr 2015 19:04:27 +0200 (CEST) X-Virus-Scanned: at arrakis.dune.hu Received: from t530.lan (cpe-94-253-155-145.zg.cable.xnet.hr [94.253.155.145]) by arrakis.dune.hu (Postfix) with ESMTPSA id 7241C28050D; Tue, 21 Apr 2015 19:04:22 +0200 (CEST) From: Luka Perkov To: openwrt-devel@lists.openwrt.org Date: Tue, 21 Apr 2015 19:04:43 +0200 Message-Id: <1429635886-4895-1-git-send-email-luka@openwrt.org> X-Mailer: git-send-email 2.3.5 Cc: Luka Perkov Subject: [OpenWrt-Devel] [PATCH 1/4] [ubox] log: remove unused callbacks X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Luka Perkov --- 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();