- c = min((u_int)(NBPG - o), (u_int)iov->iov_len);
- c = min(c, (u_int)(NBPG - ((int)iov->iov_base&PGOFSET)));
- error = uiomove((caddr_t)&vmmap[o], (int)c, rw, uio);
+ c = (u_int)(NBPG - ((int)iov->iov_base & PGOFSET));
+ c = MIN(c, (u_int)(NBPG - o));
+ c = MIN(c, (u_int)iov->iov_len);
+ error = uiomove((caddr_t)&vmmap[o], (int)c, uio);