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=txvNQoxLVh+ijFw45YYjQHjS4nRV75TxTP76foQJ6tU=; b=jBVyKxZM0ewkjSjW6MPnLAETaBFS0qO6iQW59OgtrRYRxxwJrJehnD4qZAldH31bHZ5L9M +Q4Pn0HRA6XMSZOGCNQKifW6bK4Fgf81CY9FRJoYzzqbFjH434Oivt0k0UOK27Z9a+zuNV bxOwseym4efB92/PJ6g0Fy7wTRsMQJnoNFZMDAG0vS7L+SA70pecrTzPwL9E2bqEj1K6cT 9n4AANTyzZXfJAkrWxdwFKo29Kn4eeTvW8koBR9MZL8VQXrOCDTkdVwO7pgV64Qh8yxVix vKu+JAoMM/9gP1jqVpjPAXTWe6qwJ8c9e1GLtvPxyE8p5ag2ugGeMqy3cHY5dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760350441; 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=txvNQoxLVh+ijFw45YYjQHjS4nRV75TxTP76foQJ6tU=; b=D2/40nOzw04KtJ+WE24IW36syqT19ny/zm+IddTG/wfHvCSBzWAy5TAgvYUwuzoWl6Fxr8 C4+bHf5EjxMIyPlsMBT8yDONCGDM5RlF5F/z+drTSrG4lqR3MUWTTnDXlXeZCse9Pb2Rba 7P3OveL61NWeirt6nVw23gLHLatX1XncBDQWD1YGCyUdmsUyQz8Eu8YTlJEsWoOhIMoOJH f1W3jemynKxKrXxZPOfFItVPQhUmGvKMNAikxyZ0qRkCjeLUi7mhi5jJusLcb0S+XaN/RE rBSofwrvBXLyjKj5qYkUe3EtAxKxWbQEHJjIjEwENKmik74n+/acyShUXuHKqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760350441; a=rsa-sha256; cv=none; b=D8OezLOjlPRWu57J5Wc+jzGealHZs/cr9RjCND4JxBDI9nFTFTQUQIZwcHtmsEwHJVz87v KNB636jO3ht1y6FRLYj1PPrH7q0FJnUELZ3/TnHOIMBP1mN5IcznwOtGhb5eEqKlehLSTR PCBJBfiFhYk0wnbuSkgBZz+JoMiDrwhpkaW7JY6ZoeWGG37w6IDf+xQDQj8poA6fakgQdt 65PglxEFrDtqDTQ3z/1S5/FK0fPLFDbVrzadgiy9QPb8BgGYb4S6kIDjjM/zYwhuzb/Dnp RmOL5UfKl6OWVvJXhc5sG6MmCOy02al/TADB7zzRh8oasxX9ghoJqDMwop/qog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4clY950Q8kz12Lx; Mon, 13 Oct 2025 10:14:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59DAE0mx064330; Mon, 13 Oct 2025 10:14:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59DAE0SA064327; Mon, 13 Oct 2025 10:14:00 GMT (envelope-from git) Date: Mon, 13 Oct 2025 10:14:00 GMT Message-Id: <202510131014.59DAE0SA064327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 1bba2194c8a9 - main - ipfw: Use proper prototype for SYSINIT functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1bba2194c8a960235f8eae36e7d3e96f347ce779 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=1bba2194c8a960235f8eae36e7d3e96f347ce779 commit 1bba2194c8a960235f8eae36e7d3e96f347ce779 Author: Zhenlei Huang AuthorDate: 2025-10-13 10:12:33 +0000 Commit: Zhenlei Huang CommitDate: 2025-10-13 10:12:33 +0000 ipfw: Use proper prototype for SYSINIT functions The only possible return value of function ipfw_init() is 0. Make it return void to match the prototype of SYSINIT. MFC after: 1 week --- sys/netpfil/ipfw/ip_fw2.c | 9 +++------ sys/netpfil/ipfw/ip_fw_nat.c | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw2.c b/sys/netpfil/ipfw/ip_fw2.c index b59d8d08bf80..d15d7760d7f1 100644 --- a/sys/netpfil/ipfw/ip_fw2.c +++ b/sys/netpfil/ipfw/ip_fw2.c @@ -3578,11 +3578,9 @@ sysctl_ipfw_tables_sets(SYSCTL_HANDLER_ARGS) /* * Stuff that must be initialised only on boot or module load */ -static int -ipfw_init(void) +static void +ipfw_init(void *dummy __unused) { - int error = 0; - /* * Only print out this stuff the first time around, * when called from the sysinit code. @@ -3627,14 +3625,13 @@ ipfw_init(void) ipfw_init_sopt_handler(); ipfw_init_obj_rewriter(); ipfw_iface_init(); - return (error); } /* * Called for the removal of the last instance only on module unload. */ static void -ipfw_destroy(void) +ipfw_destroy(void *dummy __unused) { ipfw_iface_destroy(); diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c index 1e2ff1bca290..1cee7873de31 100644 --- a/sys/netpfil/ipfw/ip_fw_nat.c +++ b/sys/netpfil/ipfw/ip_fw_nat.c @@ -1166,7 +1166,7 @@ vnet_ipfw_nat_uninit(const void *arg __unused) } static void -ipfw_nat_init(void) +ipfw_nat_init(void *dummy __unused) { /* init ipfw hooks */ @@ -1183,7 +1183,7 @@ ipfw_nat_init(void) } static void -ipfw_nat_destroy(void) +ipfw_nat_destroy(void *dummy __unused) { EVENTHANDLER_DEREGISTER(ifaddr_event, ifaddr_event_tag);