aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-05-23 03:02:53 +0000
committerKarl Heuer1995-05-23 03:02:53 +0000
commit270958e87908dc6530e3c393c5e2ffe618e3bf7b (patch)
tree1e5d78e98a6cd8b43773daf86e85c673f18838a5 /src
parent137edb72be3ab4e4892717626d199c0902fc91fe (diff)
downloademacs-270958e87908dc6530e3c393c5e2ffe618e3bf7b.tar.gz
emacs-270958e87908dc6530e3c393c5e2ffe618e3bf7b.zip
(hack_wm_protocols): Cast args of XGetWindowProperty.
(x_set_border_pixel): Cast args of XSetWindowBorder.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 63a58d12011..f1fbd800518 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1380,7 +1380,7 @@ x_set_border_pixel (f, pix)
1380 1380
1381 BLOCK_INPUT; 1381 BLOCK_INPUT;
1382 XSetWindowBorder (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 1382 XSetWindowBorder (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
1383 pix); 1383 (unsigned long)pix);
1384 UNBLOCK_INPUT; 1384 UNBLOCK_INPUT;
1385 1385
1386 if (FRAME_VISIBLE_P (f)) 1386 if (FRAME_VISIBLE_P (f))
@@ -2301,11 +2301,12 @@ hack_wm_protocols (f, widget)
2301 unsigned long nitems = 0; 2301 unsigned long nitems = 0;
2302 unsigned long bytes_after; 2302 unsigned long bytes_after;
2303 2303
2304 if (Success == XGetWindowProperty (dpy, w, 2304 if ((XGetWindowProperty (dpy, w,
2305 FRAME_X_DISPLAY_INFO (f)->Xatom_wm_protocols, 2305 FRAME_X_DISPLAY_INFO (f)->Xatom_wm_protocols,
2306 0, 100, False, XA_ATOM, 2306 0L, 100L, False, XA_ATOM,
2307 &type, &format, &nitems, &bytes_after, 2307 &type, &format, &nitems, &bytes_after,
2308 (unsigned char **) &atoms) 2308 (unsigned char **) &atoms)
2309 == Success)
2309 && format == 32 && type == XA_ATOM) 2310 && format == 32 && type == XA_ATOM)
2310 while (nitems > 0) 2311 while (nitems > 0)
2311 { 2312 {