aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1995-05-23 03:02:53 +0000
committerKarl Heuer <[email protected]>1995-05-23 03:02:53 +0000
commit270958e87908dc6530e3c393c5e2ffe618e3bf7b (patch)
tree1e5d78e98a6cd8b43773daf86e85c673f18838a5
parent137edb72be3ab4e4892717626d199c0902fc91fe (diff)
(hack_wm_protocols): Cast args of XGetWindowProperty.
(x_set_border_pixel): Cast args of XSetWindowBorder.
-rw-r--r--src/xfns.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 63a58d1201..f1fbd80051 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1380,7 +1380,7 @@ x_set_border_pixel (f, pix)
BLOCK_INPUT;
XSetWindowBorder (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
- pix);
+ (unsigned long)pix);
UNBLOCK_INPUT;
if (FRAME_VISIBLE_P (f))
@@ -2301,11 +2301,12 @@ hack_wm_protocols (f, widget)
unsigned long nitems = 0;
unsigned long bytes_after;
- if (Success == XGetWindowProperty (dpy, w,
- FRAME_X_DISPLAY_INFO (f)->Xatom_wm_protocols,
- 0, 100, False, XA_ATOM,
- &type, &format, &nitems, &bytes_after,
- (unsigned char **) &atoms)
+ if ((XGetWindowProperty (dpy, w,
+ FRAME_X_DISPLAY_INFO (f)->Xatom_wm_protocols,
+ 0L, 100L, False, XA_ATOM,
+ &type, &format, &nitems, &bytes_after,
+ (unsigned char **) &atoms)
+ == Success)
&& format == 32 && type == XA_ATOM)
while (nitems > 0)
{