From 6a31b986a9527a4aff88ec9292a3cf5e458d81dd Mon Sep 17 00:00:00 2001 From: mjg Date: Fri, 23 Sep 2016 16:47:12 +0000 Subject: [PATCH] fd: hide fd_modified under CAPABILITIES It has no use without it and is now less error prone. --- sys/sys/filedesc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h index d6ed2edb051f..eb0ad4b254db 100644 --- a/sys/sys/filedesc.h +++ b/sys/sys/filedesc.h @@ -229,12 +229,14 @@ fdeget_locked(struct filedesc *fdp, int fd) return (fde); } +#ifdef CAPABILITIES static __inline bool fd_modified(struct filedesc *fdp, int fd, seq_t seq) { return (!seq_consistent(fd_seq(fdp->fd_files, fd), seq)); } +#endif /* cdir/rdir/jdir manipulation functions. */ void pwd_chdir(struct thread *td, struct vnode *vp); -- 2.41.0