From d1dd9bc5e6ba09c0883e1bf27737ab13c4505ee4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 3 Dec 2025 19:01:30 +0100 Subject: [PATCH] Xi: ProcXChangeDeviceControl() consistenly name reply structs "reply" instead of "rep" Preparation for future use of generic reply assembly macros. Signed-off-by: Enrico Weigelt, metux IT consult --- Xi/chgdctl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Xi/chgdctl.c b/Xi/chgdctl.c index fd7e52bec0..0fc6ec73b5 100644 --- a/Xi/chgdctl.c +++ b/Xi/chgdctl.c @@ -104,7 +104,7 @@ ProcXChangeDeviceControl(ClientPtr client) goto out; } - xChangeDeviceControlReply rep = { + xChangeDeviceControlReply reply = { .RepType = X_ChangeDeviceControl, .status = Success, }; @@ -123,7 +123,7 @@ ProcXChangeDeviceControl(ClientPtr client) goto out; } if ((dev->deviceGrab.grab) && !SameClient(dev->deviceGrab.grab, client)) { - rep.status = AlreadyGrabbed; + reply.status = AlreadyGrabbed; ret = Success; goto out; } @@ -145,7 +145,7 @@ ProcXChangeDeviceControl(ClientPtr client) ret = Success; } else if (status == DeviceBusy) { - rep.status = DeviceBusy; + reply.status = DeviceBusy; ret = Success; } else { @@ -183,7 +183,7 @@ ProcXChangeDeviceControl(ClientPtr client) ret = Success; } else if (status == DeviceBusy) { - rep.status = DeviceBusy; + reply.status = DeviceBusy; ret = Success; } else { @@ -207,7 +207,7 @@ ProcXChangeDeviceControl(ClientPtr client) SendEventToAllWindows(dev, DevicePresenceNotifyMask, (xEvent *) &dpn, 1); - ret = X_SEND_REPLY_SIMPLE(client, rep); + ret = X_SEND_REPLY_SIMPLE(client, reply); } return ret;