Change to the linux kernel coding style
[wmaker-crm.git] / wrlib / DelCmap.c
index 4a19abb..1ef6dbd 100644 (file)
@@ -41,26 +41,23 @@ in this Software without prior written authorization from the X Consortium.
  */
 
 void XmuDeleteStandardColormap(dpy, screen, property)
-    Display    *dpy;           /* specifies the X server to connect to */
-    int                screen;         /* specifies the screen of the display */
-    Atom       property;       /* specifies the standard colormap property */
+Display *dpy;                  /* specifies the X server to connect to */
+int screen;                    /* specifies the screen of the display */
+Atom property;                 /* specifies the standard colormap property */
 {
-    XStandardColormap  *stdcmaps, *s;
-    int                        count = 0;
-
-    if (XGetRGBColormaps(dpy, RootWindow(dpy, screen), &stdcmaps, &count,
-                         property)) {
-        for (s=stdcmaps; count > 0; count--, s++) {
-            if ((s->killid == ReleaseByFreeingColormap) &&
-                (s->colormap != None) &&
-                (s->colormap != DefaultColormap(dpy, screen)))
-                XFreeColormap(dpy, s->colormap);
-            else if (s->killid != None)
-                XKillClient(dpy, s->killid);
-        }
-        XDeleteProperty(dpy, RootWindow(dpy, screen), property);
-        XFree((char *) stdcmaps);
-        XSync(dpy, False);
-    }
+       XStandardColormap *stdcmaps, *s;
+       int count = 0;
+
+       if (XGetRGBColormaps(dpy, RootWindow(dpy, screen), &stdcmaps, &count, property)) {
+               for (s = stdcmaps; count > 0; count--, s++) {
+                       if ((s->killid == ReleaseByFreeingColormap) &&
+                           (s->colormap != None) && (s->colormap != DefaultColormap(dpy, screen)))
+                               XFreeColormap(dpy, s->colormap);
+                       else if (s->killid != None)
+                               XKillClient(dpy, s->killid);
+               }
+               XDeleteProperty(dpy, RootWindow(dpy, screen), property);
+               XFree((char *)stdcmaps);
+               XSync(dpy, False);
+       }
 }
-