Переглянути джерело

Replace INITARGS with void in function parameter list

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.)
pull/1698/head
Florian Weimer 6 місяці тому
джерело
коміт
9cff04cb06
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      unix/xserver/hw/vnc/vncModule.c

+ 2
- 2
unix/xserver/hw/vnc/vncModule.c Переглянути файл

@@ -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;


Завантаження…
Відмінити
Зберегти