From: marco Date: Tue, 20 Sep 2011 03:01:00 +0000 (-0500) Subject: shut clang up here too and some more white spaces X-Git-Tag: SCROTWM_0_10_0~55 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/7e7e905867fad33666112662ce84e8c2ee65a8d9 shut clang up here too and some more white spaces --- diff --git a/lib/swm_hack.c b/lib/swm_hack.c index 34550d8..52f2a5c 100644 --- a/lib/swm_hack.c +++ b/lib/swm_hack.c @@ -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,