]> code.delx.au - spectrwm/commitdiff
shut clang up here too and some more white spaces
authormarco <marco@conformal.com>
Tue, 20 Sep 2011 03:01:00 +0000 (22:01 -0500)
committermarco <marco@conformal.com>
Tue, 20 Sep 2011 03:01:00 +0000 (22:01 -0500)
lib/swm_hack.c

index 34550d81a8215001aed91db57a2c977402a679d2..52f2a5cc0625806ca0b15e0eae1a41432201b645 100644 (file)
@@ -91,9 +91,8 @@ set_property(Display *dpy, Window id, char *name, char *val)
 {
        Atom                    atom = 0;
        char                    prop[SWM_PROPLEN];
-
-       static XIA              *xia = NULL;
-       static XCP              *xcp = NULL;
+       static XIA              *xia = NULL;
+       static XCP              *xcp = NULL;
 
        /* find the real Xlib and the real X function */
        if (!lib_xlib)
@@ -105,10 +104,10 @@ set_property(Display *dpy, Window id, char *name, char *val)
 
        /* Try to update the window's workspace property */
        atom = (*xia)(dpy, name, False);
-       if (atom) 
+       if (atom)
                if (snprintf(prop, SWM_PROPLEN, "%s", val) < SWM_PROPLEN)
                        (*xcp)(dpy, id, atom, XA_STRING,
-                           8, PropModeReplace, prop, SWM_PROPLEN);
+                           8, PropModeReplace, (unsigned char *)prop, SWM_PROPLEN);
 }
 
 typedef             Window(CWF) (Display * _display, Window _parent, int _x,