git: 7442b6323127 - main - if_epair: Use ANSI C definition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Feb 2022 13:45:34 UTC
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++) {