mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
glx: use sizeof() for reply struct
The reply struct's size can safely be determined by the sizeof() operator, so no need for using an extra define here. Making the code easier to read and also open the door for future convenience macros that might determine the buffer size on their own. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1665>
This commit is contained in:
committed by
Marge Bot
parent
558ded4dbf
commit
6bd673ab15
@@ -198,7 +198,7 @@ __glXDisp_RenderMode(__GLXclientState * cl, GLbyte * pc)
|
||||
.size = nitems,
|
||||
.newMode = newMode
|
||||
};
|
||||
WriteToClient(client, sz_xGLXRenderModeReply, &reply);
|
||||
WriteToClient(client, sizeof(xGLXRenderModeReply), &reply);
|
||||
if (retBytes) {
|
||||
WriteToClient(client, retBytes, retBuffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user