ISOfy and minor warnsfix.

This commit is contained in:
markm 2002-07-15 13:08:44 +00:00
parent 511b33620e
commit b8b883e344

View File

@ -162,13 +162,11 @@ int getvnode(struct filedesc *fdp, int fd, struct file **fpp);
void setugidsafety(struct thread *td);
static __inline struct file *
fget_locked(fdp, fd)
struct filedesc *fdp;
int fd;
fget_locked(struct filedesc *fdp, int fd)
{
/* u_int cast checks for negative descriptors. */
return ((u_int)fd >= fdp->fd_nfiles ? NULL : fdp->fd_ofiles[fd]);
return ((u_int)fd >= (u_int)fdp->fd_nfiles ? NULL : fdp->fd_ofiles[fd]);
}
#endif /* _KERNEL */