ftp://ftp.linux.ncsu.edu/mirror/ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os...
[xscreensaver] / utils / vroot.h
index ef41073a96aab0b797dbf32bb8c1d47b60e693a7..dd4a7291a910d15cc56e2f4a480d41718b50b222 100644 (file)
@@ -116,15 +116,15 @@ VirtualRootWindowOfScreen(screen) Screen *screen;
                                Atom actual_type;
                                int actual_format;
                                unsigned long nitems, bytesafter;
-                               Window *newRoot = (Window *)0;
+                               unsigned char *newRoot = 0;
 
                                if (XGetWindowProperty(dpy, children[i],
                                        __SWM_VROOT, 0, 1, False, XA_WINDOW,
                                        &actual_type, &actual_format,
                                        &nitems, &bytesafter,
-                                       (unsigned char **) &newRoot) == Success
+                                       &newRoot) == Success
                                    && newRoot) {
-                                   root = *newRoot;
+                                   root = (Window) *newRoot;
                                    break;
                                }
                        }