git: 0d9e9c3d1586 - stable/13 - if_epair: Use ANSI C definition

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 22 Mar 2023 16:33:00 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=0d9e9c3d1586934b838a3e83cd912ff9a9c0e5a2

commit 0d9e9c3d1586934b838a3e83cd912ff9a9c0e5a2
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2022-02-15 13:45:22 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-03-22 16:22:49 +0000

    if_epair: Use ANSI C definition
    
    This fixes -Werror=strict-prototypes from gcc9
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 7442b6323127a349d5465fa18ce5fe4be0600970)
---
 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 a2bc0044f7c9..2404afe63e0a 100644
--- a/sys/net/if_epair.c
+++ b/sys/net/if_epair.c
@@ -802,7 +802,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;
@@ -847,7 +847,7 @@ epair_mod_init()
 }
 
 static void
-epair_mod_cleanup()
+epair_mod_cleanup(void)
 {
 
 	for (int i = 0; i < epair_tasks.tasks; i++) {