[MPlayer-cvslog] r28053 - trunk/vidix/sh_veu_vid.c
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Nov 30 14:51:57 CET 2008
Hello,
On Sun, Nov 30, 2008 at 02:37:42PM +0100, diego wrote:
> /* Wait for an interrupt */
> - read(uio_dev.fd, &n_pending, sizeof(u_long));
> + read(uio_dev.fd, &n_pending, sizeof(unsigned long));
>
> write_reg(&uio_mmio, 0x100, VEVTR); /* ack int, write 0 to bit 0 */
> }
> @@ -473,7 +473,7 @@ static void sh_veu_blit(vidix_playback_t
> write_reg(&uio_mmio, addr + info->offset.u, VSACR);
>
> /* Enable interrupt in UIO driver */
> - write(uio_dev.fd, &enable, sizeof(u_long));
> + write(uio_dev.fd, &enable, sizeof(unsigned long));
Better use sizeof(n_pending) and sizeof(enable) instead,
because that's what is actually meant here...
More information about the MPlayer-cvslog
mailing list