Commit 21405f62 authored by walter harms's avatar walter harms Committed by Ulrich Sibiller

fix: warning: pointer targets in passing argument 2 of '_XSend' differ in…

fix: warning: pointer targets in passing argument 2 of '_XSend' differ in signedness [-Wpointer-sign] fix signess warning by casting Signed-off-by: 's avatarwalter harms <wharms@bfs.de>
parent 3f9ebf33
......@@ -39,7 +39,7 @@ XGetModifierMapping(register Display *dpy)
XModifierKeymap *res;
LockDisplay(dpy);
GetEmptyReq(GetModifierMapping, req);
GetEmptyReq(GetModifierMapping, req); // Never used ?
(void) _XReply (dpy, (xReply *)&rep, 0, xFalse);
if (rep.length < (INT_MAX >> 2) &&
......@@ -84,7 +84,7 @@ XSetModifierMapping(
req->length += mapSize >> 2;
req->numKeyPerModifier = modifier_map->max_keypermod;
Data(dpy, modifier_map->modifiermap, mapSize);
Data(dpy, (const char *)modifier_map->modifiermap, mapSize);
(void) _XReply(dpy, (xReply *) & rep,
(SIZEOF(xSetModifierMappingReply) - SIZEOF(xReply)) >> 2, xTrue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment