mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 19:04:50 +00:00
Xext: xcmisc: use REPLY_*() macros for preparing / sending replies
Use the new macros for preparing and sending replies to clients. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -57,6 +57,9 @@ ProcXCMiscGetVersion(ClientPtr client)
|
||||
.minorVersion = XCMiscMinorVersion
|
||||
};
|
||||
|
||||
REPLY_FIELD_CARD16(majorVersion);
|
||||
REPLY_FIELD_CARD16(minorVersion);
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
|
||||
@@ -72,10 +75,9 @@ ProcXCMiscGetXIDRange(ClientPtr client)
|
||||
.start_id = min_id,
|
||||
.count = max_id - min_id + 1
|
||||
};
|
||||
if (client->swapped) {
|
||||
swapl(&reply.start_id);
|
||||
swapl(&reply.count);
|
||||
}
|
||||
|
||||
REPLY_FIELD_CARD32(start_id);
|
||||
REPLY_FIELD_CARD32(count);
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
@@ -104,9 +106,8 @@ ProcXCMiscGetXIDList(ClientPtr client)
|
||||
xXCMiscGetXIDListReply reply = {
|
||||
.count = count
|
||||
};
|
||||
if (client->swapped) {
|
||||
swapl(&reply.count);
|
||||
}
|
||||
|
||||
REPLY_FIELD_CARD32(count);
|
||||
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, reply, rpcbuf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user