From 4598c0c3d215f7f2237a9ccee3a143025f2af005 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 15 Feb 2018 21:56:52 +0100 Subject: Xi: change () prototypes to (void) According to the C standard these are not equivalent. However, the same change has been done in Xorg upstream. Plus these functions are not called with parameters anywhere so we should be fine. Besides, include/{extinit.h,XIstubs.h} always had the "void". --- nx-X11/programs/Xserver/Xi/extinit.c | 8 ++++---- nx-X11/programs/Xserver/Xi/stubs.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'nx-X11/programs') diff --git a/nx-X11/programs/Xserver/Xi/extinit.c b/nx-X11/programs/Xserver/Xi/extinit.c index 4f1a0c5ad..a50552cfe 100644 --- a/nx-X11/programs/Xserver/Xi/extinit.c +++ b/nx-X11/programs/Xserver/Xi/extinit.c @@ -219,7 +219,7 @@ static XExtensionVersion thisversion = */ void -XInputExtensionInit() +XInputExtensionInit(void) { ExtensionEntry *extEntry; @@ -747,7 +747,7 @@ FixExtensionEvents(ExtensionEntry * extEntry) */ void -RestoreExtensionEvents() +RestoreExtensionEvents(void) { int i; @@ -837,7 +837,7 @@ AssignTypeAndName(DeviceIntPtr dev, Atom type, char *name) */ void -MakeDeviceTypeAtoms() +MakeDeviceTypeAtoms(void) { int i; @@ -908,7 +908,7 @@ AllowPropagateSuppress(Mask mask) */ Mask -GetNextExtEventMask() +GetNextExtEventMask(void) { int i; Mask mask = lastExtEventMask; diff --git a/nx-X11/programs/Xserver/Xi/stubs.c b/nx-X11/programs/Xserver/Xi/stubs.c index c25c739a2..e73785547 100644 --- a/nx-X11/programs/Xserver/Xi/stubs.c +++ b/nx-X11/programs/Xserver/Xi/stubs.c @@ -191,7 +191,7 @@ CloseInputDevice(DeviceIntPtr d, ClientPtr client) */ void -AddOtherInputDevices() +AddOtherInputDevices(void) { /********************************************************************** for each uninitialized device, do something like: -- cgit v1.2.3