diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-09-02 17:55:16 -0300 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-09-02 17:55:16 -0300 |
commit | a2a090e10f031aed6dbf6d143d6ce8abdf7a2392 (patch) | |
tree | e957e58dfebeacf505b98c9966d7ac1319a17b4e /src/smi_exa.c | |
parent | 2d5ba5f7310fa8e11f7349d116aa871a239ac35f (diff) |
Correct all compiler warning messages.
Code compiled with:
gcc -Wall -Wbad-function-cast -Wdeclaration-after-statement \
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
-fno-strict-aliasing -Wold-style-definition -Wpointer-arith \
-Wstrict-prototypes
This patch also makes most smi_501.c functions static, as they are not
called from anywhere else.
Also removed prototypes for non existent functions in smi_501.h.
Diffstat (limited to 'src/smi_exa.c')
-rw-r--r-- | src/smi_exa.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/smi_exa.c b/src/smi_exa.c index 06bad95..01b9017 100644 --- a/src/smi_exa.c +++ b/src/smi_exa.c @@ -422,16 +422,13 @@ Bool SMI_DownloadFromScreen(PixmapPtr pSrc, int x, int y, int w, int h, char *dst, int dst_pitch) { - ScrnInfoPtr pScrn = xf86Screens[pSrc->drawable.pScreen->myNum]; - SMIPtr pSmi = SMIPTR(pScrn); + unsigned char *src = pSrc->devPrivate.ptr; + int src_pitch = exaGetPixmapPitch(pSrc); ENTER_PROC("SMI_DownloadFromScreen"); DEBUG((VERBLEV, "x=%d y=%d w=%d h=%d dst=%d dst_pitch=%d\n", x, y, w, h, dst, dst_pitch)); - unsigned char *src = pSrc->devPrivate.ptr; - int src_pitch = exaGetPixmapPitch(pSrc); - exaWaitSync(pSrc->drawable.pScreen); src += (y * src_pitch) + (x * pSrc->drawable.bitsPerPixel/8); |