From patchwork Fri Dec 13 16:11:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1209251 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43c; helo=mail-wr1-x43c.google.com; envelope-from=swupdate+bncbcxploxj6ikrbp7qz3xqkgqe2xob7iq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="s8twB0s8"; dkim-atps=neutral Received: from mail-wr1-x43c.google.com (mail-wr1-x43c.google.com [IPv6:2a00:1450:4864:20::43c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47ZFzT1mHwz9sPc for ; Sat, 14 Dec 2019 03:11:47 +1100 (AEDT) Received: by mail-wr1-x43c.google.com with SMTP id z15sf2778844wrw.0 for ; Fri, 13 Dec 2019 08:11:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576253503; cv=pass; d=google.com; s=arc-20160816; b=ihGCwKnIf87NtpNVQyoRxiw7c5FH5ze+dhPiMIETn7J/8VgFtxgzHwNxyqKSKK5bpl SWb2paGYpfq+7s7kV/Fb669XX3gJgGrTUk4VaBBAomg4IyTCom1BqP0uTquxmg7HxhAN 8xUD6XS/NZw/v/ksTA9Shthq5dLpfBCDpkbmmjPViZt/88wR5zelerle0uce/3mLPInY 1vuyKazkqW1rVMZF17ZMx6FOPkJJIhjjQepHSCaPTA8bifUpXgeE0ri6dm7MVyOfSJR7 PrA33sM3NgEZy0Z4PgN8ci6inxcSaDII7aBouzZQkUV/J+dS9+Yv5ieKfBVned6ta4ty 8H+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=hy0t6KzV/APb/D0NGVte64JcHQNR8+MSL5mqtFkxBdk=; b=jZlIKF4/sG3fGFMGvhkj7tUbmZHywM9tU4THxvwXiG13bA17eEwdqDKQFa1i3SmEpl zSRzPwbVebCzZQqzmTgzx8it7hrc9v0w/SEYO9PYKhZAXvwlY+P2Hk/yiYf7PzJKwjdo kW7n+IQkcvR3flrRKR4qnZfRCS6tvTl+dkmgzpFfrJULizLOu7JsX0+hzKO78yB0KzF/ keQGwcgIgJt9McW3aEN8K+JEMTpdDvxwVqtP6VMRjw2v3Gb+HNeCbq3TNbdOx0h83V9q zlUB/bDUoVYyKl+TwIu3wmOBU7BqWviBUEmEEM45oAlXrcg1v6jz4GHy+eKHgGjee5F1 408w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=hy0t6KzV/APb/D0NGVte64JcHQNR8+MSL5mqtFkxBdk=; b=s8twB0s8VFAXMoh2bjJkUmzTaGPQli9vFkD0D5KjIhBd5pkz/uY1EugTB/eI65nVBo A2EpJdVQ1fGgXSEdEGuFgoSynt/EqXYWU+h+GB6G5FbfWuVnR3ZvsZCwS1bUsVNZMwcK nDS4a4JC4uxOdD0KUhwBaxBE+QxF0yQpI9aLC1SxSfQIStFYPsHJGABAL7FijNf4IVfb CV8sv6DRJ2+DXJg/UFG/BXGjLQE4xvD/S/zNgFXAOCZWGy8DuHAUkF7TH8TjCcVfpuTr Mv/1KhZ/v1TGXweJDLgRMWEkH2VeOIOYOCPoGiyUHWozUro8bYxSo6IBMNmREmBC6sgX RRoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=hy0t6KzV/APb/D0NGVte64JcHQNR8+MSL5mqtFkxBdk=; b=HajCGwTsMXXrb3YlyF7NUZScKB2TD3oiYQ02vFlnHPekincHetU0PaTUe5fOLCHnqa tie9HhkijNV78vVeML9GbCPYH0bZWfg8Gmmp/OKze1H+L24nXlZiHlDjfIERfQPh7lOO NiJHW5jzlJd38flwTgnJiSoFINyrfW1yrc4/Jm/5FfrLm3i+lr/2+9ZVFqBcexn+bdbw W5d2MVDOAlZN70AOEE+UMhWKTz8SkSbL8zrLLxtZTKbN3fCUKC7uWSkXnkwg4hC7wYFV QNApwle1t2R+Vm4cluNHsiI/q2rjIXJYn9E+DIzWvTXolOBhXlYJV63hJvYGJcXJcEtD /OAA== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAX5iuvSGcz5YMtfFbDvOUPml2XgPc+kuWqkrzv7G0nhWHUnn9R7 trKZCagS4u5guwAHmVg+3aY= X-Google-Smtp-Source: APXvYqxdpB9pfy3BXwXUqwyE4Zajbyu5JQQuc3MZg6lUyrBkhqvCX0jr855fulCiS0tguz51il7A+Q== X-Received: by 2002:adf:f091:: with SMTP id n17mr13924460wro.387.1576253503644; Fri, 13 Dec 2019 08:11:43 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:fc89:: with SMTP id g9ls3928770wrr.5.gmail; Fri, 13 Dec 2019 08:11:42 -0800 (PST) X-Received: by 2002:a5d:494f:: with SMTP id r15mr14233659wrs.143.1576253502981; Fri, 13 Dec 2019 08:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576253502; cv=none; d=google.com; s=arc-20160816; b=w50xeCA6HiE/zIBZnfHptwcSmg+dKd9HTms9w6ht7S6Tqb/FhAU7lqWG02Dwwt8psR hcwioX9wMboDG6XRorkWhzvamvQNTi83wud32DOinBVQ6maY2j7elmg7LVDKg5R8Ffll X66YdSBNes/bWl1f0o6u4Job48vXbLN1TB0txws3Gacyp6zlxxtESguk1ifM78866d0p g/kV057nyPthCB+pwG+Qw1h+pGWkWGrTLk9IELmlycy/ZBYfWWjCU0FsF8W9BDK9+6wA wmzVg6IP+dMfsm1KQUqeXxEouKfEHAUmHLKJn4yp4wSBH/I0TcqF+vMd1f74qdyb4EIp n//A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=g2RSvsNcQLCA01mImgaPgtDwzYrbrIikouKdHPWcJbE=; b=WDS9Ux0CGwjHCBH+jJsldfdNwGxjpFRKQQGg2gA8omugDYHJQTejycgWUzBcxLIDvh L08Jap60JXeBTq5j6fss2/mddqrhVcm7bdpPVi/Zr1Bnjk7vHsWKCYd7mzdyuQj65cfr gBmBvtd8/bg9qGY8DYBzbC0mIazX3jbMKHvYPTy/zETPGsQYayFO4M77ES7RnQdmTvnq gUUqGXK2y2AnadhD8647pDCrcY75MR2DMqZqBa/9/eWAAS6aZVJlxe0GDkxGVeGOXp6L 9t7yONPAFnrIAlWpIibvsCcoi0N8QoR5apaAakoxmUb9jt449kwmpShKIzR1tBa1GclH 809w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id j65si393507wmj.2.2019.12.13.08.11.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Dec 2019 08:11:42 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47ZFzL5Bw5z1qwJM; Fri, 13 Dec 2019 17:11:42 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47ZFzL51n9z1rYZn; Fri, 13 Dec 2019 17:11:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Wk2fSeGl8DRI; Fri, 13 Dec 2019 17:11:42 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Fri, 13 Dec 2019 17:11:42 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id D6ACD4540419; Fri, 13 Dec 2019 17:11:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f_rtWWsOYjky; Fri, 13 Dec 2019 17:11:39 +0100 (CET) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 61C3B45400CA; Fri, 13 Dec 2019 17:11:39 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] server_general: fix polldelay option Date: Fri, 13 Dec 2019 17:11:37 +0100 Message-Id: <20191213161137.25199-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , polldelay is not added to the option, and this makes that "-p" does not work. Using --polldelay was working. Signed-off-by: Stefano Babic --- suricatta/server_general.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suricatta/server_general.c b/suricatta/server_general.c index 6318224..c661b55 100644 --- a/suricatta/server_general.c +++ b/suricatta/server_general.c @@ -603,7 +603,7 @@ server_op_res_t server_start(char *fname, int argc, char *argv[]) /* reset to optind=1 to parse suricatta's argument vector */ optind = 1; - while ((choice = getopt_long(argc, argv, "u:l:r:w:", + while ((choice = getopt_long(argc, argv, "u:l:r:w:p:", long_options, NULL)) != -1) { switch (choice) { case 'u':