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) ...@@ -39,7 +39,7 @@ XGetModifierMapping(register Display *dpy)
XModifierKeymap *res; XModifierKeymap *res;
LockDisplay(dpy); LockDisplay(dpy);
GetEmptyReq(GetModifierMapping, req); GetEmptyReq(GetModifierMapping, req); // Never used ?
(void) _XReply (dpy, (xReply *)&rep, 0, xFalse); (void) _XReply (dpy, (xReply *)&rep, 0, xFalse);
if (rep.length < (INT_MAX >> 2) && if (rep.length < (INT_MAX >> 2) &&
...@@ -84,7 +84,7 @@ XSetModifierMapping( ...@@ -84,7 +84,7 @@ XSetModifierMapping(
req->length += mapSize >> 2; req->length += mapSize >> 2;
req->numKeyPerModifier = modifier_map->max_keypermod; 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, (void) _XReply(dpy, (xReply *) & rep,
(SIZEOF(xSetModifierMappingReply) - SIZEOF(xReply)) >> 2, xTrue); (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