--- xlock/iostuff.c +++ xlock/iostuff.c @@ -567,7 +567,7 @@ if (!blogo.data) { if (BitmapSuccess == XbmReadFileToImage(bitmap_local, &blogo.width, &blogo.height, - (unsigned char **) &blogo.data)) { + &blogo.data)) { blogo.bytes_per_line = (blogo.width + 7) / 8; *graphics_format = IS_XBMFILE; *logo = &blogo; --- xlock/vroot.h +++ xlock/vroot.h @@ -108,7 +108,7 @@ __SWM_VROOT, 0, 1, False, XA_WINDOW, &actual_type, &actual_format, &nitems, &bytesafter, - (unsigned char **) &newRoot) == Success && newRoot) { + &newRoot) == Success && newRoot) { root = *newRoot; break; }