Date: Tue, 15 Feb 2022 13:45:34 GMT From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7442b6323127 - main - if_epair: Use ANSI C definition Message-ID: <202202151345.21FDjYkf082746@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=7442b6323127a349d5465fa18ce5fe4be0600970 commit 7442b6323127a349d5465fa18ce5fe4be0600970 Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2022-02-15 13:45:22 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> 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++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202151345.21FDjYkf082746>