From patchwork Wed Mar 22 01:01:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 741797 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vnryg5gFMz9s7f for ; Wed, 22 Mar 2017 12:03:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YiKFMFmW"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pOsRebhr"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bps9zMv6qawE1GXFgYQIJmTAZ5ueqYCfjGnqGi8Tm2s=; b=YiKFMFmWkCQ/uQ uHj/l8Cu/eZ3sgbuW0bMx6L4sGS7mhTabUuiTwyXO7z4ikMmfqiWHgVTccO9VP6zhkP7uBceVk6h1 G+ON79Gd+TQzCx0IAmO7zKr2R4NvEwwlNXzIfSlTcBO02h9sKkXfEJWK0mZxl5O89fDI/uUz07a22 mMChK1wRmjnE0F7cHI6t++vHEzMY36sH7fi652Pet0WOTjWJ6lIUIV/CLHK7wPGkXzQicTsnfMCLo u3mOAxDOnzVeBCkQpLCPJ1JmsKhr9GxYRC51cggARkdEHyjyxYW7T6qtVw/MPp+0Q+tfPhugmQbJW cWjvdJItycw4NsnocVmQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqUfy-0001Mh-Ci; Wed, 22 Mar 2017 01:02:58 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqUfc-0001Il-If for lede-dev@lists.infradead.org; Wed, 22 Mar 2017 01:02:38 +0000 Received: by mail-pf0-x242.google.com with SMTP id n11so12969903pfg.2 for ; Tue, 21 Mar 2017 18:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IQ3zpXEeMg8PousgcCeSUqwl4lhJHLJ8/FwR6LKYmLs=; b=pOsRebhrKvBwzxna+skkx7KUbdY0xi2BQeVxRlAIA82KZ1sLhaoVCQz88i+EzezRNa 6cBdHQ9OKDzLWB8Vs4rrZXZ/mONYQLzOI7zp3F/HqqI9HEV2q0Lb46OUjDiF8QQpTz3u nk7TKUsxhh5EjroOtGpb7KnQmXhtB7mPbodtLpa09xPLgrP9tIAEhRxuA5QfU8gWqT7X EkiAsF15+245j2Q98Dtf9jtF8fHKVgnkNq3OXqAX6Tj1uJlVcMt6eLhz321v3t75ZZYi Wd8Tp8hW8iB08VRGfn+bbsDSmL/sdKyT5RsOqWMB7Sv2FE9qKR73gX43wjYfUY/yGRQD 6DtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IQ3zpXEeMg8PousgcCeSUqwl4lhJHLJ8/FwR6LKYmLs=; b=Gie2KtB5JDI30YfxY5x82G6ghH2hBom76Q0Kz/W7oPSfP00X/qGqMMLuntEyKcYTBc i6DbYkci8o5Xq8EKl7DeT9O66XtAhHWG067evT5E8PEYCPoojmE0g+4WaYqeHifTKSRx JAqiCd8P7ypOrq0Xq15gAvpDrrmu/2S0MpjA5nrl+hp6qH9isBdPMx2dOHMaSKVJHhNe 6YPU4HG09ERU5BP1uqy4YYz/iBORFqL2e2ScdsUTY6NDlkJFl/IaNQ/BDIUvEQ/e++Ik /yOgle3+4tNwa4HPU13Iwwed5eeuXsU2Ksj0YHWYKC/YyViaF/BU7aBwYsCSXYQQfMf4 ZtOQ== X-Gm-Message-State: AFeK/H18D6diDHMazlLfgOo2ntpzRNGWFsYLCdc8WET0K1+l3A3MhR+Ne9wGHxs2weT2pw== X-Received: by 10.98.7.203 with SMTP id 72mr42106941pfh.197.1490144534925; Tue, 21 Mar 2017 18:02:14 -0700 (PDT) Received: from clevo.lan (astound-64-85-237-100.ca.astound.net. [64.85.237.100]) by smtp.gmail.com with ESMTPSA id l71sm42032814pga.7.2017.03.21.18.02.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Mar 2017 18:02:13 -0700 (PDT) From: Rosen Penev To: lede-dev@lists.infradead.org Date: Tue, 21 Mar 2017 18:01:43 -0700 Message-Id: <20170322010143.20333-1-rosenp@gmail.com> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170321_180236_706940_E73FA191 X-CRM114-Status: UNSURE ( 7.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rosenp[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [LEDE-DEV] [PATCH] uloop: Fix new_handler type X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rosen Penev MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org sa_handler is of type void (*)(int). Update new_handler to match. Signed-off by: Rosen Penev --- uloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uloop.c b/uloop.c index 26fef32..b42e601 100644 --- a/uloop.c +++ b/uloop.c @@ -437,7 +437,7 @@ static void uloop_install_handler(int signum, void (*handler)(int), struct sigac static void uloop_ignore_signal(int signum, bool ignore) { struct sigaction s; - void *new_handler = NULL; + void (*new_handler)(int) = NULL; sigaction(signum, NULL, &s);