From patchwork Mon Nov 23 00:39:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Champetier X-Patchwork-Id: 547363 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 71C141402A2 for ; Mon, 23 Nov 2015 11:40:41 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=iJFwmJmO; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3684D289096; Mon, 23 Nov 2015 01:37:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 79A67280697 for ; Mon, 23 Nov 2015 01:37:34 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 23 Nov 2015 01:37:34 +0100 (CET) Received: by wmww144 with SMTP id w144so77699729wmw.1 for ; Sun, 22 Nov 2015 16:39:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PcdELX5TLbLTS1ulqLcP6QhYJlhu3rUZrBFtP4kPch4=; b=iJFwmJmOoDLd1KuBSuDaglA8kM207PBjCUJknXh+bxTYNMAEVVHPycKdNybyL/6iz5 hJ5aNuj+M6ORBBNczbPtnUvUSasOl9RLhh/x5ePrKpftF0At8MXl07wqi+BgY9rLOFZ0 kA3dlNiQO+4nWA1HkL2L+/5rFYGDXNzO0Ix/nxDDROaFbnV+FySqNiivHrLCqdlHqQor x4XLpPHLV+QNGgnh7oQVJm8UJyFC6sIAFdDLezRd7/ibWBoEHItCYI6hB9N4X2TAP8kJ a2fS83wxRSrozxotojzVLsVge/Q6yfBDEkHYKIlD3HRNfm4Mh9k3/wPWNw6k0hZ7r4G7 1loA== X-Received: by 10.194.87.39 with SMTP id u7mr27686784wjz.11.1448239176023; Sun, 22 Nov 2015 16:39:36 -0800 (PST) Received: from ubuntu1404.lxcnattst (ns623510.ovh.net. [5.135.134.9]) by smtp.gmail.com with ESMTPSA id n7sm10537993wmf.21.2015.11.22.16.39.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Nov 2015 16:39:35 -0800 (PST) From: Etienne CHAMPETIER To: OpenWrt Development List Date: Mon, 23 Nov 2015 00:39:22 +0000 Message-Id: <1448239164-65666-2-git-send-email-champetier.etienne@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448239164-65666-1-git-send-email-champetier.etienne@gmail.com> References: <1448239164-65666-1-git-send-email-champetier.etienne@gmail.com> Subject: [OpenWrt-Devel] [PATCH procd 2/4] ujail: remove useless arg in clone call 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" spawn_jail(void) produce a compilation error, so we use spawn_jail() Signed-off-by: Etienne CHAMPETIER --- jail/jail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jail/jail.c b/jail/jail.c index 56dc9ca..08babde 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -272,7 +272,7 @@ static int exec_jail() exit(EXIT_FAILURE); } -static int spawn_jail(void *arg) +static int spawn_jail() { if (opts.name && sethostname(opts.name, strlen(opts.name))) { ERROR("failed to sethostname: %s\n", strerror(errno)); @@ -424,7 +424,7 @@ int main(int argc, char **argv) if (opts.namespace) { jail_process.pid = clone(spawn_jail, child_stack + STACK_SIZE, - CLONE_NEWUTS | CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD, argv); + CLONE_NEWUTS | CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD, NULL); } else { jail_process.pid = fork(); }