]> source.dussan.org Git - tigervnc.git/commitdiff
Replace INITARGS with void in function parameter list 1698/head
authorFlorian Weimer <fweimer@redhat.com>
Wed, 22 Nov 2023 11:41:53 +0000 (12:41 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 22 Nov 2023 12:03:15 +0000 (13:03 +0100)
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.)

unix/xserver/hw/vnc/vncModule.c

index a448c2f1294f956220db63e7662d9cafdc5887df..fb8ce0476fac254596357f54353c079f4432b2a8 100644 (file)
@@ -36,7 +36,7 @@
 #include "XorgGlue.h"
 #include "RandrGlue.h"
 
-static void vncModuleInit(INITARGS);
+static void vncModuleInit(void);
 
 static MODULESETUPPROTO(vncSetup);
 
@@ -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;