net/dpdk*: Use valid prototypes for function declarations with no arguments.

Reviewed by:	fuz, Bruce Richardson (maintainer)
Differential Revision:	https://reviews.freebsd.org/D40170
This commit is contained in:
John Baldwin 2023-05-23 14:27:26 -07:00
parent 5bb24584cf
commit 74c810e222
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- kernel/freebsd/contigmem/contigmem.c.orig 2023-05-20 00:00:38 UTC
+++ kernel/freebsd/contigmem/contigmem.c
@@ -111,7 +111,7 @@ static int
};
static int
-contigmem_load()
+contigmem_load(void)
{
char index_string[8], description[32];
int i, error = 0;
@@ -178,7 +178,7 @@ static int
}
static int
-contigmem_unload()
+contigmem_unload(void)
{
int i;

View file

@ -0,0 +1,20 @@
--- kernel/freebsd/contigmem/contigmem.c.orig 2023-05-19 13:59:05 UTC
+++ kernel/freebsd/contigmem/contigmem.c
@@ -111,7 +111,7 @@ static int
};
static int
-contigmem_load()
+contigmem_load(void)
{
char index_string[8], description[32];
int i, error = 0;
@@ -178,7 +178,7 @@ static int
}
static int
-contigmem_unload()
+contigmem_unload(void)
{
int i;