# HG changeset patch # User diego # Date 1228052262 0 # Node ID f504a06fcf500d701efe246e70028f5e2011d7bd # Parent 4ac70bd6acac2dc64238bc8622e04f31603016cb Use standard unsigned long type instead of u_long. diff -r 4ac70bd6acac -r f504a06fcf50 vidix/sh_veu_vid.c --- a/vidix/sh_veu_vid.c Sun Nov 30 13:22:34 2008 +0000 +++ b/vidix/sh_veu_vid.c Sun Nov 30 13:37:42 2008 +0000 @@ -312,7 +312,7 @@ unsigned long n_pending; /* 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 @@ 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)); write_reg(&uio_mmio, 1, VESTR); /* start operation */ }