• Mike Gabriel's avatar
    hw/nxagent/Screen.c: Cast proper types before handing values over to fprintf(). · b5b7a2d2
    Mike Gabriel authored
     Amends the following compiler warnings:
    
     ```
     Screen.c: In function ‘nxagentCreateIconWindow’:
     Screen.c:394:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                    nxagentIconWindow);
                    ^
     Screen.c: In function ‘nxagentSetScreenSaverTime’:
     Screen.c:456:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘CARD32’ [-Wformat=]
                        ScreenSaverTime, ScreenSaverInterval);
                        ^
     Screen.c:456:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘CARD32’ [-Wformat=]
     Screen.c:476:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘CARD32’ [-Wformat=]
                        ScreenSaverTime, ScreenSaverInterval);
                        ^
     Screen.c:476:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘CARD32’ [-Wformat=]
     Screen.c: In function ‘nxagentOpenScreen’:
     Screen.c:1234:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘VisualID’ [-Wformat=]
                        visuals[numVisuals].vid);
                        ^
     Screen.c:1274:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘VisualID’ [-Wformat=]
                            depths[depthIndex].depth);
                            ^
     Screen.c:1282:17: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘VisualID’ [-Wformat=]
                      defaultVisualIndex, visuals[defaultVisualIndex].vid);
                      ^
     Screen.c:1319:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1336:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1348:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1357:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1723:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                          nxagentDefaultWindows[pScreen->myNum]);
                          ^
     Screen.c:1763:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                        nxagentDefaultWindows[pScreen->myNum]);
                        ^
     Screen.c:1775:17: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                      nxagentDefaultWindows[pScreen->myNum]);
                      ^
     Screen.c:1790:17: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                      nxagentDefaultWindows[pScreen->myNum]);
                      ^
     Screen.c: In function ‘nxagentShadowAdaptDepth’:
     Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
                   pVisual -> red_mask, pVisual -> green_mask, pVisual -> blue_mask);
                   ^
     Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
     Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
     Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
                    redMask, greenMask, blueMask);
                    ^
     Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
     Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
     ```
    b5b7a2d2
Name
Last commit
Last update
bin Loading commit data...
debian Loading commit data...
doc Loading commit data...
etc Loading commit data...
nx-X11 Loading commit data...
nxcomp Loading commit data...
nxcompext Loading commit data...
nxcompshad Loading commit data...
nxproxy Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile Loading commit data...
README.NX-development Loading commit data...
README.keystrokes Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
VERSION.x2goagent Loading commit data...
fix-patch-whitespace Loading commit data...
nx-libs.spec Loading commit data...
replace.sh Loading commit data...
version.sh Loading commit data...
x2goagent.features Loading commit data...