Skip to content

Commit

Permalink
net/dpdk*: Use valid prototypes for function declarations with no arg…
Browse files Browse the repository at this point in the history
…uments.

Reviewed by:	fuz, Bruce Richardson (maintainer)
Differential Revision:	https://reviews.freebsd.org/D40170
  • Loading branch information
bsdjhb committed May 23, 2023
1 parent 5bb2458 commit 74c810e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions net/dpdk-20.11/files/patch-kernel_freebsd_contigmem_contigmem.c
@@ -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;

20 changes: 20 additions & 0 deletions net/dpdk/files/patch-kernel_freebsd_contigmem_contigmem.c
@@ -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;

0 comments on commit 74c810e

Please sign in to comment.