}
format.bigEndian = (screenInfo.imageByteOrder == MSBFirst);
- VisualPtr vis;
+ VisualPtr vis = NULL;
for (i = 0; i < pScreen->numVisuals; i++) {
if (pScreen->visuals[i].vid == pScreen->rootVisual) {
vis = &pScreen->visuals[i];
int i;
pointer retval;
- i = dixLookupResource(&retval, pScreen->defColormap, RT_COLORMAP, NullClient,
+ i = dixLookupResourceByType(&retval, pScreen->defColormap, RT_COLORMAP, NullClient,
DixReadAccess);
/* Handle suspicious conditions */
{
if (cmap != pColormap || ndef <= 0) return;
- int first = pdef[0].pixel;
- int n = 1;
+ unsigned int first = pdef[0].pixel;
+ unsigned int n = 1;
for (int i = 1; i < ndef; i++) {
if (first + n == pdef[i].pixel) {
{
KeyClassPtr keyc = vncKeyboardDevice->key;
KeySymsPtr keymap = &keyc->curKeySyms;
- int i, j, k, n;
+ unsigned int i, n;
+ int j, k;
if (keysym == XK_Caps_Lock) {
vlog.debug("Ignoring caps lock");