From nobody Tue Feb 15 13:45:34 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 912A219BA19B; Tue, 15 Feb 2022 13:45:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jyj5p3kKgz4vx7; Tue, 15 Feb 2022 13:45:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644932734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jtMb8ao1l9nH+3y36622GeUizHeW/XMtKjYnroTa2HY=; b=Jby0Lvn/7KnCaW2WXHMYUwyit+ivMRCA/yIg6/zZulS9VtuF3IwfqIHmn+7vagl9OuU81X LfMEw+/Zek9e1FQPoklG2b2xMg9zl7Hedyi79jko5NkGGONWTVt3aAFMvx45Q/KseVxIGm jUvv/tX45Idze9NZzHZPnHtT5q8dDWVqJ9/24P1gAYNj4gxuq3Nju/Qvuky2NXp3kpgcof hASeWQ22p1RjXdYIycrns2/kCAtmEGdjf+M9IUYcdgLgT5BaZ2p7GCNIU4Y4zs1xT6Uyr5 3BxhLyB/Fs73MoqQMdaGmmQ5l2ZgbthD4145zQj3vECs3aD98sZ1UGEjzFqHYA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5FA4323794; Tue, 15 Feb 2022 13:45:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21FDjYmQ082747; Tue, 15 Feb 2022 13:45:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21FDjYkf082746; Tue, 15 Feb 2022 13:45:34 GMT (envelope-from git) Date: Tue, 15 Feb 2022 13:45:34 GMT Message-Id: <202202151345.21FDjYkf082746@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 7442b6323127 - main - if_epair: Use ANSI C definition List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7442b6323127a349d5465fa18ce5fe4be0600970 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644932734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jtMb8ao1l9nH+3y36622GeUizHeW/XMtKjYnroTa2HY=; b=rkzqAf1BUPTvwGa1fvfcGw9g0AmBnZ2CYbMlNBdcuNMMtm/kvSLCxnsw0XNgaK8Pcxhip/ pLmBMWy1CxCD+Rmz20qpTNGjA3dxQiiHs/p9hB2Qk+WysFtdtmtRqMauuCmINxbiQCD7Lk 2fAchMEDPlOXmlDG2sYmEtu6xgLAz7hTHEwWRxyN2+I1XBnKRWQ5PClqdM8aVB8oQDZZCr xFHjTwGlgK/OQJTzI6kxOGRprAyL+ArlpgSU+aJ4dR4Dd7F8ZGVu2ZvwU+sipqvmEzeCuk 2sfueqV/J45WJPf34roTCONaRZJ28g3GiATetcD2g1Ev3FdMa3oVgdJ8vusK3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644932734; a=rsa-sha256; cv=none; b=UhuhVntJgOCCz5dQ2vzRBXioKdIQE3kssC0poqH882+sQppWMjWYly5GDmd8X2fZLTH02W yLDy0WMnDQoQWSZLLIXiAon0i8/nRwxpxHJGMV0AXM4L72MIF/cXZdeUV8dcas03OBiyo3 RUnMnyDCysFuErrGVYtgLn0QJTe8z+KB/9EJEnK1I1mnyy7lRwyN1dDoGTtuiGt1zuteOI YZEK+QpA6M8ICuNc4S/F418sVdsXAJAOZN+R4QuUVmGn9N9FvHixqLPEoS8VXMYNZfN9iV zGkAqyacQch7knYiiinFz4IFsammB8IcVguorxZtzEkJpKRU5xSrggeiIMbYUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=7442b6323127a349d5465fa18ce5fe4be0600970 commit 7442b6323127a349d5465fa18ce5fe4be0600970 Author: Li-Wen Hsu AuthorDate: 2022-02-15 13:45:22 +0000 Commit: Li-Wen Hsu CommitDate: 2022-02-15 13:45:22 +0000 if_epair: Use ANSI C definition This fixes -Werror=strict-prototypes from gcc9 Sponsored by: The FreeBSD Foundation --- sys/net/if_epair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index 6cc0a1a954ef..629de981d5b0 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -784,7 +784,7 @@ VNET_SYSUNINIT(vnet_epair_uninit, SI_SUB_INIT_IF, SI_ORDER_ANY, vnet_epair_uninit, NULL); static int -epair_mod_init() +epair_mod_init(void) { char name[32]; epair_tasks.tasks = 0; @@ -828,7 +828,7 @@ epair_mod_init() } static void -epair_mod_cleanup() +epair_mod_cleanup(void) { for (int i = 0; i < epair_tasks.tasks; i++) {