Skip to content

Commit

Permalink
freebsd/contigmem: fix function parameter list
Browse files Browse the repository at this point in the history
Functions which take no parameters should explicitly have "(void)" as
the parameter list, rather than "()".

Reported upstream on FreeBSD ports collection [1].

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271524

Fixes: 764bf26 ("add FreeBSD support")
Cc: stable@dpdk.org

Reported-by: John Baldwin <jhb@FreeBSD.org>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
bruce-richardson authored and ovsrobot committed May 22, 2023
1 parent a399d7b commit 621140c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/freebsd/contigmem/contigmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static struct cdevsw contigmem_ops = {
};

static int
contigmem_load()
contigmem_load(void)
{
char index_string[8], description[32];
int i, error = 0;
Expand Down Expand Up @@ -178,7 +178,7 @@ contigmem_load()
}

static int
contigmem_unload()
contigmem_unload(void)
{
int i;

Expand Down

0 comments on commit 621140c

Please sign in to comment.