# HG changeset patch # User Karl Heuer # Date 801198173 0 # Node ID 8b3575269610a662f03769a29ecefb0aacfccd86 # Parent 3c292d5eed59533dca6daed66afc4675a894e653 (hack_wm_protocols): Cast args of XGetWindowProperty. (x_set_border_pixel): Cast args of XSetWindowBorder. diff -r 3c292d5eed59 -r 8b3575269610 src/xfns.c --- a/src/xfns.c Tue May 23 03:02:17 1995 +0000 +++ b/src/xfns.c Tue May 23 03:02:53 1995 +0000 @@ -1380,7 +1380,7 @@ 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 @@ 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) {