diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-02-15 15:14:14 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-26 00:58:46 +0100 |
commit | 7aca428ffe10b2cffca8fe01962aef421a5a5645 (patch) | |
tree | 959c5d4ada874c816f49888825edeeba3f005b24 /nx-X11/programs/Xserver/Xi/listdev.c | |
parent | 41a0ba729fb67efdc5f7bd50f73f145cf5d8a153 (diff) | |
download | nx-libs-7aca428ffe10b2cffca8fe01962aef421a5a5645.tar.gz nx-libs-7aca428ffe10b2cffca8fe01962aef421a5a5645.tar.bz2 nx-libs-7aca428ffe10b2cffca8fe01962aef421a5a5645.zip |
Xi: ansify function prototypes
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/listdev.c')
-rw-r--r-- | nx-X11/programs/Xserver/Xi/listdev.c | 51 |
1 files changed, 12 insertions, 39 deletions
diff --git a/nx-X11/programs/Xserver/Xi/listdev.c b/nx-X11/programs/Xserver/Xi/listdev.c index 76bfa3564..c667f1632 100644 --- a/nx-X11/programs/Xserver/Xi/listdev.c +++ b/nx-X11/programs/Xserver/Xi/listdev.c @@ -76,8 +76,7 @@ SOFTWARE. */ int -SProcXListInputDevices(client) - register ClientPtr client; +SProcXListInputDevices(register ClientPtr client) { REQUEST(xListInputDevicesReq); swaps(&stuff->length); @@ -91,8 +90,7 @@ SProcXListInputDevices(client) */ int -ProcXListInputDevices (client) - register ClientPtr client; +ProcXListInputDevices(register ClientPtr client) { xListInputDevicesReply rep; int numdevs; @@ -150,10 +148,7 @@ ProcXListInputDevices (client) */ void -SizeDeviceInfo (d, namesize, size) - DeviceIntPtr d; - int *namesize; - int *size; +SizeDeviceInfo(DeviceIntPtr d, int *namesize, int *size) { int chunks; @@ -179,13 +174,8 @@ SizeDeviceInfo (d, namesize, size) */ void -ListDeviceInfo (client, d, dev, devbuf, classbuf, namebuf) - ClientPtr client; - DeviceIntPtr d; - xDeviceInfoPtr dev; - char **devbuf; - char **classbuf; - char **namebuf; +ListDeviceInfo(ClientPtr client, DeviceIntPtr d, xDeviceInfoPtr dev, + char **devbuf, char **classbuf, char **namebuf) { CopyDeviceName(namebuf, d->name); CopySwapDevice(client, d, 0, devbuf); @@ -216,9 +206,7 @@ ListDeviceInfo (client, d, dev, devbuf, classbuf, namebuf) */ void -CopyDeviceName (namebuf, name) - char **namebuf; - char *name; +CopyDeviceName(char **namebuf, char *name) { char *nameptr = (char *)*namebuf; @@ -242,11 +230,8 @@ CopyDeviceName (namebuf, name) */ void -CopySwapDevice (client, d, num_classes, buf) - register ClientPtr client; - DeviceIntPtr d; - int num_classes; - char **buf; +CopySwapDevice(register ClientPtr client, DeviceIntPtr d, int num_classes, + char **buf) { xDeviceInfoPtr dev; @@ -275,10 +260,7 @@ CopySwapDevice (client, d, num_classes, buf) */ void -CopySwapKeyClass (client, k, buf) - register ClientPtr client; - KeyClassPtr k; - char **buf; +CopySwapKeyClass(register ClientPtr client, KeyClassPtr k, char **buf) { xKeyInfoPtr k2; @@ -302,10 +284,7 @@ CopySwapKeyClass (client, k, buf) */ void -CopySwapButtonClass (client, b, buf) - register ClientPtr client; - ButtonClassPtr b; - char **buf; +CopySwapButtonClass(register ClientPtr client, ButtonClassPtr b, char **buf) { xButtonInfoPtr b2; @@ -333,10 +312,7 @@ CopySwapButtonClass (client, b, buf) */ int -CopySwapValuatorClass (client, v, buf) - register ClientPtr client; - ValuatorClassPtr v; - char **buf; +CopySwapValuatorClass(register ClientPtr client, ValuatorClassPtr v, char **buf) { int i, j, axes, t_axes; xValuatorInfoPtr v2; @@ -385,10 +361,7 @@ CopySwapValuatorClass (client, v, buf) */ void -SRepXListInputDevices (client, size, rep) - ClientPtr client; - int size; - xListInputDevicesReply *rep; +SRepXListInputDevices(ClientPtr client, int size, xListInputDevicesReply * rep) { swaps(&rep->sequenceNumber); swapl(&rep->length); |