Skip to content

Commit

Permalink
Replace INITARGS with void in function parameter list
Browse files Browse the repository at this point in the history
Most compilers currently accept arbitrary identifiers in this place
and ignore then, but this is going to change and turn into an error.
(It prevents compilers from diagnosing misspelled type names,
and the resulting declaration is not a prototype, so no type
errors will be reported at call sites.)
  • Loading branch information
fweimer-rh committed Nov 22, 2023
1 parent be3d0bc commit 9cff04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unix/xserver/hw/vnc/vncModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "XorgGlue.h"
#include "RandrGlue.h"

static void vncModuleInit(INITARGS);
static void vncModuleInit(void);

static MODULESETUPPROTO(vncSetup);

Expand Down Expand Up @@ -70,7 +70,7 @@ vncSetup(void * module, void * opts, int *errmaj, int *errmin) {
return (void *)1;
}

static void vncModuleInit(INITARGS)
static void vncModuleInit(void)
{
static char once = 0;

Expand Down

0 comments on commit 9cff04c

Please sign in to comment.