xfree86: fix two compiler warnings in xf86vmode.c
xf86vmode.c:1578: warning: pointer targets in passing argument 1 of ‘SwapShorts’ differ in signedness ../../../../include/misc.h:231: note: expected ‘short int *’ but argument is of type ‘CARD16 *’ xf86vmode.c:1543: warning: unused variable ‘i’ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9d039ef504
commit
4ddb002b68
|
@ -1540,7 +1540,7 @@ static int
|
||||||
ProcXF86VidModeGetGammaRamp(ClientPtr client)
|
ProcXF86VidModeGetGammaRamp(ClientPtr client)
|
||||||
{
|
{
|
||||||
CARD16 *ramp = NULL;
|
CARD16 *ramp = NULL;
|
||||||
int n, length, i;
|
int n, length;
|
||||||
size_t ramplen;
|
size_t ramplen;
|
||||||
xXF86VidModeGetGammaRampReply rep;
|
xXF86VidModeGetGammaRampReply rep;
|
||||||
REQUEST(xXF86VidModeGetGammaRampReq);
|
REQUEST(xXF86VidModeGetGammaRampReq);
|
||||||
|
@ -1575,7 +1575,7 @@ ProcXF86VidModeGetGammaRamp(ClientPtr client)
|
||||||
swaps(&rep.sequenceNumber, n);
|
swaps(&rep.sequenceNumber, n);
|
||||||
swapl(&rep.length, n);
|
swapl(&rep.length, n);
|
||||||
swaps(&rep.size, n);
|
swaps(&rep.size, n);
|
||||||
SwapShorts(ramp, length * 3);
|
SwapShorts((short*)ramp, length * 3);
|
||||||
}
|
}
|
||||||
WriteToClient(client, sizeof(xXF86VidModeGetGammaRampReply), (char *)&rep);
|
WriteToClient(client, sizeof(xXF86VidModeGetGammaRampReply), (char *)&rep);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user