summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2013-10-03 13:51:57 +0000
committerokan <okan>2013-10-03 13:51:57 +0000
commit6ac51b8e41da0f47b6cf95bcb8ca58ec86378d88 (patch)
tree38f89f6ff10a2f5c9a026c49890e44eac3d2b612 /xutil.c
parenta439012b5806997e60df870faad87a5fec20d4e8 (diff)
downloadcwm-6ac51b8e41da0f47b6cf95bcb8ca58ec86378d88.tar.gz
cwm-6ac51b8e41da0f47b6cf95bcb8ca58ec86378d88.tar.xz
cwm-6ac51b8e41da0f47b6cf95bcb8ca58ec86378d88.zip
unify type; no change
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xutil.c b/xutil.c
index 7912cb8..543b8b0 100644
--- a/xutil.c
+++ b/xutil.c
@@ -106,7 +106,7 @@ xu_key_grab(Window win, u_int mask, KeySym keysym)
 }
 
 int
-xu_getprop(Window win, Atom atm, Atom type, long len, u_char **p)
+xu_getprop(Window win, Atom atm, Atom type, long len, unsigned char **p)
 {
 	Atom	 realtype;
 	u_long	 n, extra;
@@ -160,7 +160,7 @@ xu_get_wm_state(Window win, int *state)
 	long	*p = NULL;
 
 	if (xu_getprop(win, cwmh[WM_STATE], cwmh[WM_STATE], 2L,
-	    (u_char **)&p) <= 0)
+	    (unsigned char **)&p) <= 0)
 		return (-1);
 
 	*state = (int)*p;
@@ -331,7 +331,7 @@ xu_ewmh_get_net_wm_state(struct client_ctx *cc, int *n)
 	Atom	*state, *p = NULL;
 
 	if ((*n = xu_getprop(cc->win, ewmh[_NET_WM_STATE], XA_ATOM, 64L,
-	    (u_char **)&p)) <= 0)
+	    (unsigned char **)&p)) <= 0)
 		return (NULL);
 
 	state = xcalloc(*n, sizeof(Atom));